Get started with kissui.scrollanim CDN

MIT licensed

Kissui.ScrollAnim is a library for creating scroll-based animations.

Tags:
  • css3
  • animation
  • scroll
  • html5
  • kissui

Stable version

Copied!

How to start using kissui.scrollanim CDN


<!DOCTYPE html>
<html>
<head>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/kissui@2.3.2/dist/kissui.min.css">
  <script src="https://cdn.jsdelivr.net/npm/kissui@2.3.2/dist/kissui.min.js"></script>
  <script src="https://cdn.cdnhub.io/kissui.scrollanim/0.3.0/scrollanim.min.js"></script>
  <style>
    #box {
      width: 200px;
      height: 200px;
      background-color: #f00;
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
  </style>
</head>
<body>
  <button id="animate">Animate</button>
  <div id="box"></div>

  <script>
    document.getElementById('animate').addEventListener('click', () => {
      ScrollAnim.scrollTo('#box', { duration: 1000, easing: 'easeInOutQuad' });
    });
  </script>
</body>
</html>
Copied!
Copied!
Copied!

All versions