86K Webflow Domain List
NEW

Split Text into Lines

Example

Split Text into Lines

Description

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.

Instructions

  1. Add the Javascript to the closing body custom code settings
  2. Update the JavaScript code based on your own requirements

Javascript snippet


<!-- Add to body close section -->
<script src="https://unpkg.com/split-type"></script>
<script>
let typeSplit;
// Split the text up
function runSplit() {
  typeSplit = new SplitType(".split-lines", {
    types: "lines, words"
  });
}
runSplit();
// Update on window resize
let windowWidth = $(window).innerWidth();
window.addEventListener("resize", function () {
  if (windowWidth !== $(window).innerWidth()) {
    windowWidth = $(window).innerWidth();
    typeSplit.revert();
    runSplit();
  }
});
</script>

CSS snippet

HTML snippet

Countdown timer

Countdown timer

Add a countdown timer to your Webflow site with this simple Javascript snippet. Want to display a countdown timer to a time of your choosing on your Webflow site? Now you can easily add one with this Javascript snippet.

Prevent Input Zoom Scaling on Mobile

Prevent Input Zoom Scaling on Mobile

Prevent an input form zoom scaling on mobile on your Webflow site. This allows for a better user experience based on your sites design rather than mobile OS zoom default properties.

Custom Slider Dot Color

Custom Slider Dot Color

Easily change the native Webflow slider element navigation/dot colors with this CSS snippet. This method allows you to easily select the colors of Webflow's native slider dots via a CSS code snippet.

Single Line Truncate Text

Single Line Truncate Text

Automatically truncate text that goes beyond a line on your Webflow site with this simple CSS script. This helps create uniformed design on your site by truncating text with ellipsis if they go beyond a single line.

Fix Finsweet CSS Styling Issues

Fix Finsweet CSS Styling Issues

This is used to normalize and reset any CSS used in the client-first system to correct any strange Webflow native issues as well as offer some additional functionality like truncating via CSS. This should be added to your global styles embed on your site.

Truncate multi-line text with Ellipse

Truncate multi-line text with Ellipse

Do you want consistency with your Webflow designs? Truncate multi-line texts with ellipses based on 2 or 3 lines of your choosing via CSS. This helps keep your designs uniformed without needing to set max height limitations by truncating text that goes beyond a certain length.

Hyperlink hover effect

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.

Remove https:// from link text

Remove https:// from link text

This code snippet allows you to automatically remove https:// from all link URLs on absolute URL links (links without anchor text) on your Webflow site. This is a great way to cleanup links or pages of links on your Webflow site.

DRAG
Real-time sorting by
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.

Outline Stroke Text

Outline Stroke Text

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

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.

Draggable Elements

Draggable Elements

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

Remove Safari & Chrome Scrollbar

Remove Safari & Chrome Scrollbar

Remove Safari & Chrome scrollbars from your Webflow site via this 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.

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