Ellipsis text
CSS class to truncate text with ellipsis when it overflows the container width.
By Jared Malan
Navbar color change depending on hovered section
Dynamically update element colors on scroll based on visible section attributes.
By Digipop
Bind function to window
Defines an empty global function doSomethingInAnotherFile.
By Jared Malan
Tabs switch on hover
JavaScript code for a hover-based tab interface with dynamic content display.
By Andrea Morgan
Refresh after form submit
Automatically refreshes the page 7 seconds after any form submission.
By Corey Moen
Get localStorage
Retrieve and parse surfers data from localStorage.
By Jared Malan
Validation - Website
Validates URLs using regex and handles validation on input blur.
By Jared Malan
Basic scrollTrigger setup
Animate elements based on scroll position using GSAP and ScrollTrigger.
By Digipop
Fetch - Post
This code sends a POST request with JSON data to a specific URL, processes the JSON response, and handles any errors.
By Jared Malan
Rive - Set Text Run Value
Update the string of text used in a Rive text run at runtime
By Jeff McAvoy
Restart IX2
Reset, initialize, and prepare Webflow interactions for optimal functionality.
By Web Bae
Set Hidden Input Value From URL Parameters
Retrieve URL parameter and set it to a hidden input field.
By Corey Moen
Number to Currency
Formats a string input as US dollar currency without decimal places.
By Jared Malan
Pause/Reset Video Embed on Click
Stops all iframe videos by resetting their source on '.close-video' button click.
By Corey Moen
Auto update copyright year
Dynamically updates an HTML element to display the current year using JavaScript.
By Digipop
Fetch - Get
A JavaScript code snippet that fetches data from a URL, converts the response to JSON, and logs the data or any error to the console.
By Jared Malan
Reveal Words on Scroll
Animate text on scroll with GSAP, ScrollTrigger, and SplitType.
By Witt Langstaff
Progress Bar Timer
JavaScript code to dynamically update a progress bar based on time between two dates.
By Digipop