当前位置: 首页 > news >正文

JavaScript 动画库

1.GSAP(GreenSock动画平台):动画强国

  • https://gsap.com/

    gsap.to('.box', {duration: 2, x: 300, rotation: 360, ease: 'bounce'});

 2. Anime.js:简单但强大

  • https://animejs.com/

    anime({targets: '.circle',translateX: 250,scale: 2,duration: 3000
    });

3. Velocity.js:速度与优雅的结合

 http://velocityjs.org/

$('.element').velocity({translateY: '200px',rotateZ: '45deg'
}, 1000);

4. Three.js:将 3D 带入 Web

  • https://threejs.org

const geometry = new THREE.BoxGeometry();
const material = new THREE.MeshBasicMaterial({color: 0x00ff00});
const cube = new THREE.Mesh(geometry, material);
scene.add(cube);

5. Lottie:动画变得简单

  • https://lottiefiles.com/

    lottie.loadAnimation({container: document.getElementById('lottie-container'),renderer: 'svg',loop: true,autoplay: true,path: 'data.json'
    });

6. Popmotion:最佳灵活性

  • https://popmotion.io

    animate({from: 0,to: 100,onUpdate: latest => console.log(latest)
    });

7. Mo.js:动态图形变得简单 

  • https://mojs.github.io/

    const burst = new mojs.Burst({radius:   { 0: 100 },count:    5,children: {shape:      'circle',fill:       { 'cyan' : 'yellow' },duration:   2000}
    });

8.Typed.js:让文本栩栩如生 

  • https://mattboldt.com/demos/typed-js/

    new Typed('#element', {strings: ['Hello, World!', 'Welcome to my website!'],typeSpeed: 50
    });

 

9. AniJS:非编码人员的动画 

  • https://anijs.github.io

    <div data-anijs='if: click, do: fadeIn, to: .target'></div>

10. Framer Motion:React 的动画超级英雄 

  • https://www.framer.com/motion/

    <motion.divanimate={{ x: 100 }}transition={{ duration: 2 }}
    />

11. ScrollMagic:基于滚动的动画大师

  • http://scrollmagic.io/

new ScrollMagic.Scene({triggerElement: '#trigger',duration: 300
})
.setTween('#animate', {scale: 2.5})
.addTo(controller);

 

12. Motion One:小而强大 

  • https://motion.dev/

    animate('#box', { x: 100 }, { duration: 1 });


http://www.mrgr.cn/news/11742.html

相关文章:

  • (最新)华为 2024 届秋招-硬件技术工程师-单板硬件开发—机试题—(共12套)(每套四十题)
  • 37 使用LDT(3)
  • 03_React 收集表单数据和 组件生命周期
  • 【Qt】容器类控件GroupBox
  • Python自动化办公2.0 课程更新
  • 切换JDK版本
  • Python邮箱发送如何配置SMTP服务发送邮件?
  • [linux][软件]Ubuntu部署SVN服务器
  • 一元线性回归梯度下降代码
  • nginxlvshaproxy负载均衡的区别
  • 关于如何在已有qt项目中添加该项目的单元测试工程
  • [Qt5] 使用QtConcurrent::run在异步线程中执行耗时函数
  • ORACLE EBS R12系统的安装及维护案例
  • 【不合理的递归区间】快排递归引发区间错误,除以0未定义
  • 机器学习:K-means算法(内有精彩动图)
  • MySQL运维学习(2):主从复制
  • 在 Monaco Editor 中自定义右键菜单并支持多级菜单
  • 对于 OpenAI 最新发布 支持实时语音对话的模型GPT-4o,我想说
  • 新手科研人必看! 2024年8月学术论文疑惑解答,迅速提升你的SCI投稿质量。
  • iOS WebView