Skip to the content

Button 05

The button turns toward the pointer in perspective, a sheen of colour sits where the pointer is and the label lifts in depth apart from its plate; on the way out it comes back with an elastic return.

Become a member to unlock the full effect today.

Join now

Already a member? Sign in

Documentation

  1. Copy to Webflow

    Add Geist and Geist Mono to your site's fonts (Site settings, Fonts, Google Fonts) before pasting: Webflow removes any font your site has not installed.

  2. Add custom CSS

    The look of the preview is the button-set-* classes of the paste: the button at rest, its row and the words around it. The Embed only places the moving layers and holds the colour of the effect. On a button of your own, keep your class and add the attribute.
  3. Add custom JS

  4. Use it on your own elements

    Custom attribute
    Select the element on the canvas and open the Settings panel. Under Custom attributes, add a pair: the name on the left, the value on the right.
    Custom attributeWhat it does
    data-button-motion="tilt" The button turns toward the pointer in perspective, with a sheen under it and the label lifted. Ignores a finger.
    This file plays tilt. Another animation of the set needs that button's own code on the page: without it, the button stays as the page styled it and the browser console says so. An empty or unknown value plays fill when fill's code is on the page, tilt otherwise, and says so in the console.
    Settings
    Every setting is a custom attribute too, added the same way and on the same element. An attribute always wins over the defaults written in the code.
    AttributeDefaultWhat it is
    data-button-motion-color #ffab1a The colour of the sheen under the pointer. Options: any CSS colour.
    data-button-motion-duration 0.6 Length of the sheen coming up and the label lifting, in seconds; the elastic return lasts 1.6 times it.
    data-button-motion-tilt 9 The largest angle the button turns to, in degrees, reached at its edges.
    data-button-motion-press 0.96 The scale of the button while it is pressed.

What it does

Button 05 (Tilt) is a button hover animation for Webflow and vanilla JavaScript, built on GSAP 3. Also called 3D tilt button hover or tilt button.

The button turns toward the pointer in perspective, a sheen of colour sits where the pointer is and the label lifts in depth apart from its plate; on the way out it comes back with an elastic return. Played with GSAP on the button the page already has: the engine sets no font, size, border or background, only the colour of the sheen, and puts the label back exactly on destroy. Keyboard focus and reduced motion are handled, and a finger is left alone. Button 05 of the Button set: another button of the set pasted on the same page shares its base. Pattern type 3d tilt button, sheen, cta hover.

Updated