Breakdance4fun Logo

Category: Tutorials

How to synchronize two sliders

How about a script that links two sliders to build a proper thumbnail slider? While the existing ThumbSlider custom element covers basic needs, it has some constraints—it only supports images…
Read more

How to change the sticky logo on Scroll

Here's how to easily change your logo on scroll when your header is sticky. The approach involves layering two logos: the primary logo is visible initially, while the secondary logo…
Read more

How to add sparkles to your text

Where sparkles dance and web designs breakdance Sparkly Text is a lightweight web component allowing developers to integrate eye-catching animated sparkles, making any text element shine. Customize the count, size,…
Read more

Animated Shape Dividers on Scroll

With a few lines of code, magically done with GSAP , we can easily animate the shape dividers, which can make a pretty cool effect, especially for a hero section.…
Read more

How to create a dark mode toggle in Breakdance

Oct 2024 update: Javascript code fix by Moussa Khelifi The CSS prefers-color-scheme media query is utilized to identify a user's color scheme preference, allowing for automatic switching between light and…
Read more

How to add a Glitch effect with PowerGlitch

With the PowerGlitch JS library, it's simple to incorporate a glitch effect into any breakdance element. The effect can be activated automatically, on hover or click. PowerGlitch A tiny library…
Read more