Instructions

A concise guide to help you understand, configure, and use the product smoothly.
Back to Homepage

1. Webflow

If you're new to Webflow, take a look at this Webflow 101 Crash Course to understand the basics and essentials.

2. Customization

To make color, fonts and style modifications easier and quicker, this Template utilizes Webflow variables feature.

3. Style Guide

This template utilizes components and variables feature in Webflow - this means the style and feel of this template can be changed easily, with just a few clicks.

4. SVG

Icons in this template are custom made, SVG code embedded elements. If you want to change their size, select one of them and simply change the Height Width Icons in this template are custom made, SVG code embedded elements.

5. GSAP Slice Hover Animation

Animation Overview

This GSAP slice hover animation creates a smooth and modern reveal effect for blog cards. When a user hovers over the card, the slices move up and down alternately while fading in. When the mouse leaves, they smoothly return to their original position and fade out.

Structure Setup in Webflow

To use this in Webflow, first create a parent div with the class blog-widget. Inside that parent, add 5 divs with the class slice. This structure is required for the animation to target each slice correctly.

Required CSS Settings

The parent element must have position: relative and overflow: hidden. Each slice should have position: absolute, width: 100%, height: 100%, and an initial opacity: 0 so they remain hidden before hover. Without these settings, the animation will not display correctly.

Adding GSAP

Add the GSAP CDN before the closing body tag of your Webflow page. Then place your custom animation script below it. If GSAP is not loaded properly, the animation will not run.

Customizing Movement Distance

You can control how far the slices move by changing the value 120 inside the y function. For a subtle movement, use 60. For a stronger and more dramatic effect, use 200. This allows you to match the motion intensity with your design style.

Changing Direction Behavior

If you want all slices to move in the same direction instead of alternating up and down, replace the function with a fixed value such as y: -120. This creates a cleaner and more uniform animation style.

Adjusting Animation Speed

Modify the duration values to control speed. Higher numbers make the animation slower and smoother. Lower numbers make it faster and snappier.

Improving Animation Feel (Easing)

You can enhance the smoothness of the animation by changing the ease property. For example, expo.out gives a premium smooth effect, while back.out(1.7) adds a slight bounce for a more dynamic feel.

Controlling Stagger Timing

The stagger value controls the delay between each slice animation. A higher value creates more separation between slices. Setting it to 0 makes all slices animate at the same time.

Updating Class Names

If your Webflow card uses a different class name, update the selector inside querySelectorAll() so it matches exactly. Always double-check the class name using browser inspect tools to avoid mismatches.

Stability Improvement

For better stability and to prevent jump glitches, add gsap.set(slices, { y: 0 }); before starting the hover animation. This ensures slices always reset properly before animating.

Troubleshooting

If the animation is not working, make sure GSAP is properly loaded, class names match exactly, slices are placed inside the card wrapper, and the website is published instead of only previewed.

6. live time update

Animation Overview

This script creates a live updating clock on your Webflow page. It displays hours, minutes, and seconds in 12-hour format with AM/PM, updating every second so visitors always see the current local time.

HTML Setup

To use it, first add an element with the class live-time where you want the clock to appear, for example: <div class="live-time"></div>. You can style this element in Webflow to match your site’s design using font size, weight, color, and alignment.

Adding the Script

Place the script before the closing </body> tag or inside an Embed element. The script finds the .live-time element, gets the current time, converts it to 12-hour format with AM/PM, pads hours, minutes, and seconds with leading zeros, and updates the element every second using setInterval().

Customization Options

You can customize the clock format by switching to 24-hour time (remove the AM/PM logic) or hiding seconds if you only want hours and minutes. You can also style the .live-time class in Webflow Designer to adjust font size, weight, color, and alignment.

How It Works

The script continuously updates the time by running the updateTime() function every second. It ensures the clock always reflects the visitor’s local time accurately.

Troubleshooting

If the clock does not appear or update, check that the element has the exact class name live-time, ensure the script is loaded after the Webflow library, and confirm the site is published instead of just previewed.

6. Still Confused?

If you still have any confusion or need clarification on anything, feel free to reach out to us directly. You can contact us via email at support@onixtheme.com.We’re happy to help!