86K Webflow Domain List
NEW

Play Background Video on Hover

Example

Description

Play a background video when a user hovers over the video on your Webflow site.

Instructions

  1. Add the Javascript code to the closing body custom code page settings
  2. Update the class name to your chosen class name

Javascript snippet


<!-- Add to body close section -->
<script>

var Webflow = Webflow || [];
Webflow.push(function() {
    // Change .video here to your video class
    var figure = $(".video").hover(function() {  
        $('video', this).get(0).play(); 
    }, function() {
        $('video', this).get(0).pause();
    }).each(function() {
        $('video', this).get(0).pause();
    });
});

</script>

CSS snippet

HTML snippet

Hyperlink hover effect

5

Add a unique hyperlink highlight hover effect to your Webflow site with this custom CSS solution. This simple CSS script allows you to add a unique highlight hover effect without using any custom Webflow interactions.

Force Safari to Respect Border Radius on Images & Videos

Safari will often not respect border radiuses on images and videos. With this CSS code snippet you can force Safari to respect border radius on images and videos on your Webflow site.

Vimeo as Background Video

Add a Vimeo video as a background video on your Webflow site using this custom CSS code. If you've wanted to add a Vimeo video as a background video you'll see that it's not possible natively in Webflow. This CSS allows you to add a Vimeo background video to your Webflow site.

Fade Non-Active Elements

This simple CSS code snippet allows you to fade items that are not currently hovered on your Webflow site. This is perfect for navbars or other elements that you want to emphasize the hover state on without building unique hover states or using interactions.

Effect all siblings on mouse hover with CSS

When you over over a child class the other children's opacity is set to 10% using CSS. An easy way to utilize CSS vs Interactions to control children elements.

DRAG
Real-time sorting by

Play Background Video on Hover

Play a background video when a user hovers over the video on your Webflow site.

Split Text into Lines

Easily split text into lines based on lines, words, characters on your Webflow site. A great way to add interactions based on your own specifications to text on your Webflow site.

Draggable Elements

Make your site dynamic by adding draggable elements on your Webflow site with this simple Javascript code snippet.

Outline Stroke Text

Add an outline (stroke) effect to text elements on your Webflow site with this CSS code snippet.

Scroll to Top of Page on Tab Click

Automatically scroll a user to the top of page on a tab change on your Webflow site. A simple Javascript code snippet that allows for you to scroll users to the top of your site based on your selected class.

Add Random Sticker to Page on Click

A fun unique way of adding a random sticker to your Webflow site on click.

Split CMS Collection into Multiple Sections

Split up your Webflow CMS collections into multiple sections with this Javascript code snippet. This allows you to easily break up a collection lists into multiple sections, a great way of adding your own elements in between a Webflow CMS collection list.

Force Safari to Respect Border Radius on Images & Videos

Safari will often not respect border radiuses on images and videos. With this CSS code snippet you can force Safari to respect border radius on images and videos on your Webflow site.

DRAG
Real-time sorting by