Join the Webstudio community

Updated 3 months ago

activationMode for Radix tabs and autoplay possible ?

At a glance

The community members are discussing how to set the activationMode or onHover functionality for Radix tabs, and whether it's possible to autoplay tabs without too much custom code. The comments indicate that the activationMode property is available in the Radix tabs API, but it's not working as expected, and the community members are unable to get it to function as an onHover trigger. They also explore alternative solutions like using custom JavaScript or the SwiperJS library, but conclude that these may not be the most elegant or simple approach for their use case, which involves a subtle autorotation and smooth transitions between tab content. The community members also mention a related resource from Greenshift and discuss potential issues or bugs with the Radix tabs implementation.

Useful resources
Where do I set activationMode or some kind of onHover for Radix tabs ?

Found this activationMode under API reference -> Root here:

https://www.radix-ui.com/primitives/docs/components/tabs

And is autoplaying tabs possible without too much custom code?
O
J
20 comments
seems like its there, haven't tried it myself though
Attachment
image.png
ahh sorry yes, I found it related to the Tabs component, not the list, triggers and content.
But it is not working as onHover does
nothing happens
I started a blank project and tried, does it require publishing or some time ? The docs say it activates when the tab receives focus
Do you have a solution for autoplaying tabs ?
with custom js you could click on tab triggers
or use swiperjs instead, it has autoplay and what not
tabs is not a gallery thing
gallery thing ? I need it for explainer stuff
I could just use the nav component if I could have the first "tab" opened by default maybe. But that would not give me autoplay.
swiperjs is not only for images, you can have anything in there
if you want an autoplay and transitions, you probably want swiperjs not tabs
seems like stuff I would perhaps put into tabs ... but it really should be a much more elegant and simple solution to have auto rotation/play of the Radix tabs - not what I am looking for anyways - thank a lot though. Will find some other solution for this

I do not need animation stuff and the flashy annoying stuff, but a subtle autoration when the user is scanning the hero section where the tabs content smoothly transitions to other content to tell the viewer that there is more to see is practical. Preferrably with Ken Burns-effect - which is similarly engaging with out being annoying, but sosmetimes just annoying.
autorotation without soft transition is also not nice for the human eye
tabs has a lot to do with accessibility, I think in this case its a slideshow/gallery
just for reference - Greenshift has a very practical approach here - https://greenshiftwp.com/advanced-tabs/
also I still could not make activationMode do anything - is it a bug or ?
Did you make a ticket for the activationMode on github ? Or some general checkup on the radix components ?

It is not working for me. Doesnt matter what I choose on the setting, automatic or manual, when applying to tve Tabs.

Also it seems to break after having added the property in a setup with radix tabs and two videos.

This did not fix it, but not sure how to read the ticket. It says closed.

https://github.com/webstudio-is/webstudio/issues/2124
Add a reply
Sign up and join the conversation on Discord