Webflow sync, pageviews & more.
NEW

Scroll to Top of Page on Tab Click

Example

Scroll to Top of Page on Tab Click

Description

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.

Instructions

  1. Add Javascript code snippet to closing body custom code
  2. Update class name to the element you want users to scroll to top on click

Javascript snippet


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

$(".your-tab-class").click(function() {
$("html, body").animate({ scrollTop: 0 }, "slow");
return false;
});

</script>

CSS snippet

HTML snippet

Disable/Enable Clicking on Element

Disable/Enable Clicking on Element

Control which elements can or cannot be clicked on your Webflow site with this simple CSS code snippet.

Change Active Webflow Tab

Change Active Webflow Tab

Change the default Webflow active tab on your Webflow site with this custom Javascript code.

Mirror Click Script

Mirror Click Script

Trigger a click on another element when one element is clicked in Webflow. This is perfect for allowing one element to control a click of another element.

Custom Scrollbar

Custom Scrollbar

Create a custom scrollbar for your Webflow site with this CSS code snippet. Change the boring, static browser scrollbar design of your Webflow site to a unique design.

CMS Add to Calendar Button

CMS Add to Calendar Button

Add a Calendar button for via your Webflow CMS via this custom Javascript and CSS. This enables your users to easily add events to their calendars based on dates/information in your Webflow CMS.

Navigate Webflow Slider with Arrow Keys

Navigate Webflow Slider with Arrow Keys

Add arrow keys keyboard functionality to Webflow's native slider with this simple Javascript code. This added functionality allows users to use their keyboards to navigation through slides in a Webflow slider.

Randomize button text on click

Randomize button text on click

This allows you to randomize the text on a button click in Webflow. A fun way of displaying a variety of different texts when a user clicks on a button on your Webflow page.

Add Random Sticker to Page on Click

Add Random Sticker to Page on Click

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

DRAG
Real-time sorting by
Disable/Enable Clicking on Element

Disable/Enable Clicking on Element

Control which elements can or cannot be clicked on your Webflow site with this simple CSS code snippet.

Split Text into Lines

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.

Play Background Video on Hover

Play Background Video on Hover

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

Change Active Webflow Tab

Change Active Webflow Tab

Change the default Webflow active tab on your Webflow site with this custom Javascript code.

Split CMS Collection into Multiple Sections

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.

Number of CMS Item Count

Number of CMS Item Count

A simple way of displaying the number of CMS items on a page in Webflow. If you ever wanted to add a CMS item count on a page this script will allow you to easily display the total number of items shown.

Force Links to Inherit Parent Font Color

Force Links to Inherit Parent Font Color

Force your Webflow site links to inherit the parent font color with this simple CSS code snippet. This makes it easier for you to manage your link color on Webflow.

Force Safari to Respect Border Radius on Images & Videos

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