PFold演示三种不同的打开纸卡特效

PFold演示三种不同的打开纸卡特效

添加时间:2021-03-04 21:15:53
站长推荐丨赞助论坛,可获取海量资源终身免费下载权限奥!
举报 举报
收藏
预览
附件 附件
  • 模板类型模板类型:jQuery插件
  • 模板颜色模板颜色:高级
  • 下载积分下载积分:28 米粒
  • 下载权限下载权限:

    赞助会员

PFold.js是一款折叠纸片插件,支持定义折叠纸牌数量、折叠动画效果、折叠方向,而且还支持折叠结束后回调方法。
PFold演示三种不同的打开纸卡特效
分类:其它特效 > jQuery插件 难易:高级

纸卡html

<div id="uc-container" class="uc-container">
    <div class="uc-initial-content">
        <span class="clickme">点击我</span>
    </div>
    <div class="uc-final-content">
        <div class="scrollwrap">
            <h3>Dear Sucaihuo,</h3>
            <p>I just wanted to let you know that you left the garage door open and all the monkeys could get away! Great job! How often did I tell you <span>NOT</span> to forget to close it. On top of all that you also left the gate open and now they are literally in the wild! Anyway, just wated to say <span>THANKS</span> for that!</p><p class="signature">Yours, Barbara</p>
        </div>
        <span class="close">x</span>
    </div>
</div>

引入并调用pfold.js纸卡插件

<script type="text/javascript" src="js/jquery.pfold.js"></script>
var $container = $('#uc-container'),
        pfold = $('#uc-container').pfold({
    easing: 'ease-in-out',
    folds: 3,
    folddirection: ['left', 'bottom', 'right']
});

$container.find('span.clickme').on('click', function() {
    pfold.unfold();
}).end().find('span.close').on('click', function() {
    pfold.fold();
});

pfold.js相关API参数

参数 描述 默认值
perspective 透视度 1200
speed 打开纸卡速度 450
easing 动画效果 linear
folddelay 折叠延迟时间 0
folds 折叠次数 2
folddirection 折叠方向顺序 ['right','top']
overlays 遮盖物 true
centered 是否居中 false
containerSpeedFactor [0 - 1] specify a different speed for the container's translation 1
containerEasing easing for the container transition this is only valid if centered is true linear

方法Method

onEndFolding onEndFolding : function() { return false; } -
onEndUnfolding onEndUnfolding : function() { return false; } -
相关内容推荐
资源求助发帖
查看更多发帖

*

回帖描述:

*

链接类型:

*

下载链接:

密码:
发帖规则:回帖内容为会员之间的私信,普通网友无法查看。
免责声明:回帖中提供的链接内容仅供会员之间学习参考使用,获取内容后请在法律法规范围内使用。回帖提供的内容应符合法律法规要求,不得违反法律法律的要求。
站点权责:回帖内容如违反法律法规,站点有权封停账号使用权利。对用户举报的内容,站点有责任及时删除违规内容。
热点内容推荐
标题:PFold演示三种不同的打开纸卡特效

*

描述:
平均回复时间:3-10分钟
规则介绍:悬赏寻求论坛网友分享资源,站点对分享内容的准确性,合法性,版权等没有足够的监管能力。如果您发现资源不正确,无法使用,不符合法律法律等情况,您可以直接举报资源。站长将尽快核实您的举报,并根据情况,采取封号,退换米粒等处理。

*

回帖描述:

*

链接类型:

*

阅读权限:

*

下载链接:

密码:
发帖规则:回帖内容为会员之间的私信,普通网友无法查看。
免责声明:回帖中提供的链接内容仅供会员之间学习参考使用,获取内容后请在法律法规范围内使用。回帖提供的内容应符合法律法规要求,不得违反法律法律的要求。
站点权责:回帖内容如违反法律法规,站点有权封停账号使用权利。对用户举报的内容,站点有责任及时删除违规内容。
  • 背景波浪
  • 背景波浪
  • 波浪
  • 波浪
客服
在线咨询
周一 至 周日 9:00 ~ 22:00
QQ:1326974360
微信:juyoubuluo6688
客服热线
18205485173
工作日 9:00 ~ 18:00
微信扫码咨询
客户服务
欢迎咨询服务
咨询量较多时,请耐心等待
社群

关注公众号

获取更多资讯

扫码进群(QQ)

与更多大牛交流沟通

0.147249s