Relume Community Icon
Relume Community
  • 馃彔Home
  • 馃搮Events

  • 馃數Announcements
  • 馃數General
  • 馃數Getting Started
  • 馃數Issues
  • 馃數Showcase

Powered by Tightknit
Issues
Issues

Clickable Buttons in an Animated Timeline with Negative Z-Index

Avatar of Audrey P.Audrey P.
路

Hi there! I'm trying to make this button clickable in the animated timeline component. The section has to have a z-index -4 and is therefore blocking the click. How can I keep this negative z-index but still have clickable buttons? Here is my read-only link Thanks!

10 comments

  • Avatar of Amir M.
    Amir M.
    路

    Elements with negative z-index are not clickable, but there is a solution to maintain the timeline animation while keeping buttons clickable. Here are the steps: Set the Background Image Wrapper z-index to 0 instead of negative values Set the Background Overlay z-index to 1 and add pointer-events: none Set the Background Image z-index to 0 Make sure any elements (like text or buttons) that need to be clickable are set to position relative with a z-index higher than 1 If your content is nested inside a full-screen padding global element, add this CSS: .padding-global { pointer-events: none; } .padding-global * { pointer-events: auto; } This solution allows you to maintain the visual hierarchy while ensuring all interactive elements remain clickable.

  • Avatar of Matt J.
    Matt J.
    路

    Audrey P. where did you grab this timeline component? Can you link me to the component directly? Thanks

  • Avatar of Audrey P.
    Audrey P.
    路

    Matt J. it's the timeline you have in this exemple: https://webflow.com/made-in-webflow/website/relume-timeline-cloneable

  • Avatar of Matt J.
    Matt J.
    路

    Audrey P. okay I was afraid of that.

    馃ゲ1
  • Avatar of Matt J.
    Matt J.
    路

    Not sure which plan you are on, but are you able to copy any of our more recent timeline components or no? https://www.relume.io/categories/timelines

  • Avatar of Matt J.
    Matt J.
    路

    These updated timelines don't require too much messing around with z-index and are a bit more cross-browser friendly and stable

  • Avatar of Audrey P.
    Audrey P.
    路

    Thanks Amir M. for your time鈥擨 tried to play around with this based no luck! Thanks a lot anyways

    馃檶1
  • Avatar of Audrey P.
    Audrey P.
    路

    Matt J. ok, that's why I was confused when I couldn't see it in the timeline component list. I have a paid plan so I'll be able to migrated to "official" and updated ones. 馃檪 Thanks!

  • Avatar of Matt J.
    Matt J.
    路

    Audrey P. okay sounds good, let me know if you run into any issues.

  • Avatar of Amir M.
    Amir M.
    路

    Audrey P. ooh sad to hear no luck , let me know if i can solve on your behalf and have you follow Matt J. tips