Code

Interactive Form Elements

Add dynamic interactive Webflow form elements with this Anime.js code snippet.

Interactive Form Elements preview

Add dynamic interactive Webflow form elements with this Anime.js code snippet.

How to add it

  1. Add Javascript code snippet to the closing body custom code section
  2. Update the class names with your relevant class names
  3. 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>

                    

Browse similar code snippets

Language

More from Timothy Ricks

Profile →

Related Webflow questions

All answers →

Similar code snippets

All code snippets →