Afplaktape Posted October 24, 2023 Share Posted October 24, 2023 I'm trying to achieve this text effect: https://gifyu.com/image/S6eV2 But I'm not really sure where to start... Is there anyone who could point me in the right direction? Thanks:) See the Pen poGvKKo by Afplaktape (@Afplaktape) on CodePen Link to comment Share on other sites More sharing options...
Solution mvaneijgen Posted October 24, 2023 Solution Share Posted October 24, 2023 Hey @Afplaktape What I would do is create all your text elements (you could do this with JS, I've just add them in the HTML) and then stack them on top of each other. I've add some CSS and some JS to your setup. Next you probably want to seamless loop the element, check the videos below! Hoop dat het helpt en veel geluk! See the Pen QWYwBKy?editors=0010 by mvaneijgen (@mvaneijgen) on CodePen Here are two tutorials that that really explain the concept really well (by our own @Carl) https://www.youtube.com/watch?v=0DSkgXNFZHs https://www.youtube.com/watch?v=Tq0BdNtK0Ro 2 Link to comment Share on other sites More sharing options...
Afplaktape Posted October 24, 2023 Author Share Posted October 24, 2023 Thanks this helps a lot!! Super bedankt!:) Link to comment Share on other sites More sharing options...
Afplaktape Posted October 24, 2023 Author Share Posted October 24, 2023 I tried following the tutorial as good as possible. The words loop seamlessly now but I'm not able to influence the amount of time the words are being visible... What am I doing wrong here? See the Pen poGvZWR by Afplaktape (@Afplaktape) on CodePen Link to comment Share on other sites More sharing options...
mvaneijgen Posted October 24, 2023 Share Posted October 24, 2023 You where missing the pause variable and something else, I've copied the logic from the tutorial and now it seems to work. See the Pen poGvGBJ?editors=0010 by mvaneijgen (@mvaneijgen) on CodePen 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now