Get started with cta.js CDN
MIT licensed
CTA.js is a lightweight library for creating and managing Call-to-Action buttons.
Tags:- animation
- transition
- ux
- javascript
- library
Stable version
Copied!
How to start using cta.js CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with cta.js CDN - cdnhub.io</title>
<script src="https://cdn.cdnhub.io/cta.js/0.3.2/cta.min.js"></script>
</head>
<body>
<button id="cta-button">Call to Action</button>
<script>
const ctaButton = document.getElementById('cta-button');
CTA.create({
text: 'Sign Up Now',
target: ctaButton,
classes: 'btn btn-primary',
position: 'right bottom',
onAction: function() {
alert('You clicked the CTA button!');
}
});
</script>
</body>
</html>
Copied!
Copied!