Join the Webstudio community

Updated 2 months ago

Styling the "Text" of the Active Item in "Accordion"

At a glance
Hi everyone, I have two questions that I believe are simple, one about styling and the other about JavaScript.

Style:
How can I style the "Text" of the active item in the "Accordion"?

JavaScript:
Do I need any additional configuration to integrate SwiperJS? My slider is working, but its behavior seems a bit odd!

Link: https://minhamackninha.wstd.io/

Thanks in advance for your help!
Attachments
image.png
image.png
J
r
J
9 comments
On the Item Trigger there is an open state. There you can change styles. I'd try setting the color there. If you need to control individual style values then CSS variable will be the go to https://youtu.be/rg49mmDvdlE
Attachment
image.png
For swiper is is the scrolling testimonials? Seems to be working for me
Thank you for the tip about the open state in the Item Trigger. 😍
Thank you for checking! It seems to work, but sometimes the behavior is strange. It starts normally, but around the 3rd or 4th item, it stops, stutters, and then resumes.
Oh I see. I'm not familiar with swiper to help much. Have you tried asking chatgpt?
I've already tried GPT, but it doesn't help much! The same issue happens in this other project using Swiper as well. It starts normally but then doesn't seem smooth.

Link: https://portfolio-projeto-pessoal-0volm.wstd.io/
@rangelavier, I don't use swiperjs but I just loaded each of them to a blank project to see what you mean. It seems that in all of them you need to click to start the animation. You must have made changes to the JS?
I didn’t make changes to the JS other than the basic Swiper configuration. πŸ˜•
Attachment
image.png
We must be talking about different things. The image is from the swiper.js demos in the marketplace.
Attachments
CleanShot_2024-11-27_at_09.31.382x.png
CleanShot_2024-11-27_at_09.32.402x.png
Add a reply
Sign up and join the conversation on Discord