Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Re-creating a navigation. How to disable an animation when another class is added. Re: Re-creating a navigation. How to disable an animation when another class is added.

#134955
Xordan
Member

I attilahajzer, you can put about any custom attribute on HTML element. But data-* are valid attributes for HTML5 and is a standard use with jQuery. For :after and :before pseudo class you can use any attribute on your element to output data in content rule. For example, you can output href of any anchor with content: attr(href). Hope you like this solution and it fit your needs and answer your request properly. For the active menu, just put the class “active” on your backend on the right element. No need of any javascript for this.