creedon Posted May 25, 2022 Share Posted May 25, 2022 (edited) Please see Text Block Text Class Add. This code was inspired by a member query as to a tab effect. Although this isn't a specific solution to their query. It is code that is a base effect, code which from to build other effects. I do show a rudimentary CSS tab effect using this base code. text block text class add with tabs example.mp4 What the code is doing is adding classes, based on the clicked tab labels, higher up the chain so that CSS can then manipulate elements involved. This code may have an advantage to some other solutions as might be found elsewhere on the web. It uses native blocks instead of code in code blocks or other methods to maintain the text bits. Well it does require one code block to indicate to the code the text to be used as classes. 🙂 But overall it might be easier to maintain. It does take a good understanding of CSS to get set up. Edited May 26, 2022 by creedon ilseS and tuanphan 2 Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment