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.div
      animate={{ 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 });

  • 14
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值