Interactive Form Elements
Add dynamic interactive Webflow form elements with this Anime.js code snippet.
Add dynamic interactive Webflow form elements with this Anime.js code snippet.
How to add it
- Add Javascript code snippet to the closing body custom code section
- Update the class names with your relevant class names
- Update settings based on your specifications
The code
Javascript
<!-- Add to closing body section -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/2.0.2/anime.min.js"></script>
<script>
// Fade Up Animation
var fadeUp = anime.timeline({
loop: false,
autoplay: true,
});
fadeUp
.add({
targets: 'h4, .link, .field_parent',
translateY: [80,0],
translateZ: 0,
opacity: [0,1],
easing: "easeOutExpo",
duration: 1400,
delay: (el, i) => 400 + 50 * i
});
</script>