Get started with overthrow CDN

MIT licensed

Lightweight JS plugin: Overthrow.js creates custom animations, transforms HTML elements.

Tags:
  • overthrow

Stable version

Copied!

How to start using overthrow CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with overthrow CDN - cdnhub.io</title>
  <link rel="stylesheet" href="styles.css">
  <script src="https://cdn.cdnhub.io/overthrow/0.7.0/overthrow.min.js"></script>
</head>
<body>
  <div id="draggable" class="draggable">
    Drag me!
  </div>
  <script>
    const draggableElement = document.getElementById('draggable');
    Overthrow.create(draggableElement, {
      target: document.body,
      constraints: {
        axis: 'x y',
        minimumX: 0,
        maximumX: 500,
        minimumY: 0,
        maximumY: 400
      }
    });
  </script>
</body>
</html>
Copied!
Copied!

All versions