Get started with wade CDN
MIT licensed
Wade: Lightweight JS for accessible, interactive HTML5 forms.
Tags:- search
- wade
- fast
- light
Stable version
Copied!
How to start using wade CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with wade CDN - cdnhub.io</title>
<script src="https://cdn.cdnhub.io/wade/0.3.3/wade.min.js"></script>
</head>
<body>
<button id="animate">Animate</button>
<div id="box" style="width: 100px; height: 100px; background-color: red;"></div>
<script>
const wade = new Wade();
const box = document.getElementById('box');
const animateButton = document.getElementById('animate');
animateButton.addEventListener('click', () => {
wade.to(box, { width: 200, height: 200, duration: 1000, easing: 'easeInOutQuad' });
});
</script>
</body>
</html>
Copied!
Copied!