Freddy03h / heart.css

CSS micro-framework for Single Page Application
35 stars 2 forks source link

data-state instead of class ? #4

Open Freddy03h opened 10 years ago

Freddy03h commented 10 years ago

I read this article : Stop toggling classes with JS, use behaviour driven DOM manipulation with data-states and Thinking in states is exactly what I try to do with Heart.css

What do you think about change this

<div class="layer-toggle open">
    …
</div>

to this ?

<div class="layer-toggle" data-state="open">
    …
</div>