Update: working by moving my HTML/CSS/JS into the custom header and an embed. Not ideal but it’s working. Still leaving this open for more Webflow-esque solutions.
Hello,
Working on my portfolio website and I’d like to add a header (h1) that includes one word that rotates in the header. I’ve tried a number of solutions online to make this work in Webflow and even built a custom animation to try and make it work on my own. However, the solutions I found online aren’t responsive or don’t work and the this was also the issue I ran into when I created my own animation.
I can get this feature working with a bit of elbow grease in HTML / CSS (the demo gif/video is from the code I exported from Webflow and worked on myself in VSCode.) It’s responsive. But I can’t get this effect working in Webflow. The sentence is: “I transform your { brand passion business vision } into a high-conversion eCommerce powerhouse.” Only one of the words in brackets is showing at a time and the others rotate in, replacing the previous word.
This is great. Thank you for your help. I didn’t consider using custom element. I was trying to get the individual words in spans inside of a span and it wasn’t working too well. Thank you again.
In theory, everything should works with regular text elements too💁♂️
In this case, for a long word, you would have to use a combo class with position: relative instead of writing an attribute as in my example with Custom Element (you may add style attribute only for Custom Element cause for regular Webflow elements this attribute is “reserved” and you can’t apply it)