Hide scrollbars
CSS class to hide scrollbars
By Jared Malan
Auto-collapse accordion in Webflow
Toggle accordion elements with a click, ensuring only one can be open at a time.
By Digipop
Get localStorage
Retrieve and parse surfers data from localStorage.
By Jared Malan
Set Hidden Input Value From URL Parameters
Retrieve URL parameter and set it to a hidden input field.
By Corey Moen
Validation - Phone
Validates phone number format and handles errors on input field blur.
By Jared Malan
Handle Resize
Optimizes window resize handling by debouncing rerendering of elements.
By Jared Malan
GSAP card staggered animation
Animate elements on viewport entry with GSAP and ScrollTrigger.
By Digipop
Rive Input - Update Number
This code lets you update the value of a Rive number input variable.
By Jeff McAvoy
Auto update copyright year
Dynamically updates an HTML element to display the current year using JavaScript.
By Digipop
Validation - Website
Validates URLs using regex and handles validation on input blur.
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
Number to Currency
Formats a string input as US dollar currency without decimal places.
By Jared Malan
Rive Input - Create Variable by Name
Create a variable for your state machine inputs by input name.
By Jeff McAvoy
Load All CMS Items
This JavaScript code parses and displays CMS items from a webpage, storing them in an array and rendering them in a specified div.
By Jared Malan
Greenhouse
Fetches and displays job listings from Greenhouse API, with department-based filtering.
By Green Malan
Currency to Number
Convert currency string to number by removing non-digit characters and parsing to float. Throws error for invalid input.
By Jared Malan
Fix Paragraph Runts With Nonbreaking Space
Prevent single-word runts in HTML elements with the class `.no-runt`.
By Corey Moen
Copy to Clipboard
Copy text to clipboard on button click with visual feedback and console log.
By Jared Malan