js+css创建的3D立体杯子旋转动画特效代码

所属分类: 网页特效-动画效果    2024-03-21 02:02:34

js+css创建的3D立体杯子旋转动画特效代码 ie兼容6
反馈问题  查看演示  登录后下载 温馨提示
登录会员即可享受免费下载
 我要建站

js+css创建的3D立体杯子旋转动画特效代码(共3个文件)

    • index.html

使用方法

function clickFunc(e){
  temp = e.target.parentNode.parentNode;
  temp.getElementsByClassName("fillCup")[0].style.animationName = "none";
  temp.getElementsByClassName("coffeeFoam")[0].style.animationName = "none";
  temp.getElementsByClassName("innerWrapper")[0].style.animationName = "none";
  temp.getElementsByClassName("shadowDiv")[0].style.animationName = "none";
  var x = temp.getElementsByClassName("handleDiv");
  for (var i = 0; i < x.length; i++) {
    x[i].style.animationName = "none";
  }
  setTimeout(function(){
    temp.getElementsByClassName("fillCup")[0].style.animationName = "";
    temp.getElementsByClassName("fillCup")[0].style.animationPlayState = "running";
    temp.getElementsByClassName("coffeeFoam")[0].style.animationName = "";
    temp.getElementsByClassName("coffeeFoam")[0].style.animationPlayState = "running";
    temp.getElementsByClassName("innerWrapper")[0].style.animationName = "";
    temp.getElementsByClassName("innerWrapper")[0].style.animationPlayState = "running";
    temp.getElementsByClassName("shadowDiv")[0].style.animationName = "";
    temp.getElementsByClassName("shadowDiv")[0].style.animationPlayState = "running";
    var x = temp.getElementsByClassName("handleDiv");
    for (var i = 0; i < x.length; i++) {
      x[i].style.animationName = "";
      x[i].style.animationPlayState = "running";
    }
  }, 50);

}

站长提示:
1. 平台上所有素材资源,需注册登录会员方能正常下载。
2. 会员用户积极反馈网站、素材资源BUG或错误问题,每次奖励20K币
3. PHP源码类素材,如需协助安装调试,或你有二次开发需求,可联系苦力吧客服。
4. 付费素材资源,需充值后方能下载,如有任何疑问可直接联系苦力吧客服
相关资源 / 动画效果

js+css滑块切换过渡动画

一款鼠标点击平滑切换过渡特效,运用在单页面中,通过鼠标点击进行切换显示不同的内容,非常震撼好看的过渡特效。
  动画效果
 142  

纯css3绚丽圆点背景动画特效

一款css3编写的多彩气泡背景动画,canvas画布实现,非常的nice~ 喜欢的拿走!
  动画效果
 190  

js基于canvas鼠标跟随几何动画特效

一款鼠标跟随背景动画效果,跟随鼠标轨迹进行几何图形动画随机运动,非常好看!
  动画效果
 140  

jquery自定义光标动画跟随特效代码

基于jQuery和GSAP中实现的一个非常有创意的自定义光标和交互式光标效果,经过链接时自动放大。共包含3个html页面,3个不同的特效。
  动画效果
 361  

评论数(0) 回复有机会获得K币 用户协议

^_^ 还没有人评论,快来抢个沙发!
😀
  • 😀
  • 😊
  • 😂
  • 😍
  • 😑
  • 😷
  • 😵
  • 😛
  • 😣
  • 😱
  • 😋
  • 😎
  • 😵
  • 😕
  • 😶
  • 😚
  • 😜
  • 😭
发表评论