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

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

PFold.js是一款折叠纸片插件,支持定义折叠纸牌数量、折叠动画效果、折叠方向,而且还支持折叠结束后回调方法。

淘建站为您提供更多_其它特效_jQuery插件_纸卡_paper,在此特别感谢您对我们的支持与厚爱!

查看演示

演示不了,点击反馈

加入收藏

下载 394 次

下载资源

65 积分

特别说明:本站资源来自网友发布分享,仅供学习与参考,请勿用于商业用途,若有侵权请联系删除(272966172@qq.com)。

纸卡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; } -

声明:本资料由淘建站会员提供,如转载注明来源,资料来源淘建站免费素材库:https://www.taojz.cn/texiao/683.html
PFold演示三种不同的打开纸卡特效 希望对你有帮助,感谢您的支持!
留言(0)
头像
 阿里云限量代金券,戳我领取
1 2