Get started with css-doodle CDN

MIT licensed

CSS-Doodle is a lightweight library for creating and manipulating CSS animations and transitions.

Tags:
  • css
  • web-components

Stable version

Copied!

How to start using css-doodle CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with css-doodle CDN - cdnhub.io</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/css-doodle@0.38.4/css-doodle.min.css">
  <script src="https://cdn.cdnhub.io/css-doodle/0.38.4/css-doodle.min.js"></script>
</head>
<body>
  <svg width="200" height="200">
    <defs>
      <filter id="blur">
        <feGaussianBlur stdDeviation="5" />
      </filter>
    </defs>
    <rect x="50" y="50" width="100" height="100" fill="blue" filter="url(#blur)"/>
    <circle cx="100" cy="100" r="50" fill="red" stroke-width="10" stroke-linecap="round" stroke="white" cssDoodle-animate="{r: '50 100', duration: '2s', easing: 'ease-in-out'}"/>
  </svg>
  <script>
    document.addEventListener('DOMContentLoaded', () => {
      const circle = document.querySelector('circle');
      circle.cssDoodleAnimate('r', { from: '50', to: '100', duration: '2s', easing: 'ease-in-out' });
    });
  </script>
</body>
</html>
Copied!

All versions