Skip to content

SVG and HTML ids and classes to reference via css or select via Javascript

hernan edited this page Mar 24, 2018 · 1 revision

Adding a class or id to a layer

In After Effects, you can add a class or an id to a layer by prefixing it's name with a "#" (for id) or a "." (for classes).

For example if you name your layer in After Effects: .button_element.button_submit#form_button the svg or html element will have

  • two classes: button_element and button_element_submit
  • an id: form_button