Webflow sync, pageviews & more.
NEW

Change Active Webflow Tab

Example

Change Active Webflow Tab

Description

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

Instructions

  1. Add the Javascript code to your closing body custom code section
  2. Update the class names and the number to the tab you want selected

Javascript snippet


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

// Change the 3 to the number tab you want to be active

	$(".your-tab-class").removeClass("w--current");
  	$(".your-tab-class:nth-child(3)").addClass("w--current");
  	
</script>

CSS snippet

HTML snippet

Swipe Webflow Tabs

Swipe Webflow Tabs

Add native swiping gestures to Webflow tabs to allow for swiping between tabs with this Javascript code. Webflow doesn't natively support swiping gestures, however it's easy to add swiping gestures to switch between tabs via this JS code.

Add Previous/Next Buttons to Tabs

Add Previous/Next Buttons to Tabs

Add a next/previous button to Webflow tabs via this Javascript. This allows users to easily navigate between tabs with previous next buttons rather than only the tab links.

Set URL from Tab Change

Set URL from Tab Change

Link to specific tabs using URL parameters by setting tab URLs in Webflow. This script allows you to set the tab name in the elements panel for the tabs that you want the URL to include for each tab. The URL will use the # parameter, for example something like example.com#tabName where tabName is the element ID you set on the tab. This allows you to link to specific tabs from other pages and have more control over the tab experience.

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.

Autoplaying Rotating Tabs

Autoplaying Rotating Tabs

Here's a way to create autoplaying tabs in Webflow using JS. Autoplaying tabs allow for tabs to automatically rotate between tabs based on a time of your choosing. Keep in mind that this method uses the click method and could cause problems if you are using forms or other interactions that rely on mouse click functionality.

Scroll to Top of Page on Tab Click

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.

Page Transition Click Delay

Page Transition Click Delay

Add a delay when a user clicks on a link on your Webflow site. This functionality adds a nice delay to your Webflow site before the users hit the next page.

Redirect Logged in User to Dashboard

Redirect Logged in User to Dashboard

1

Redirect a Memberstack user to your Webflow user dashboard if they are logged in to your Webflow Memberstack membership site.

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.

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.

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.

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