Update syntax and Add visible

This commit is contained in:
Andros Fenollosa
2020-07-22 19:31:19 +02:00
parent 3fc6ff1c78
commit 5b06ffd174
9 changed files with 282 additions and 102 deletions

View File

@ -7,97 +7,110 @@
</head>
<body>
<!-- Class with ID -->
<div i-click="class:add('show1', '#menu1')">add</div>
<div i-click="class:remove('show2', '#menu2')">remove</div>
<div i-click="class:toggle('show3', '#menu3')">toggle</div>
<div is-click="class:add('show1', '#menu1')">add</div>
<div is-click="class:remove('show2', '#menu2')">remove</div>
<div is-click="class:toggle('show3', '#menu3')">toggle</div>
<!-- End Class with ID -->
<!-- Class with class -->
<div i-click="class:add('show1', '.menu1')">add</div>
<div i-click="class:remove('show2', '.menu2')">remove</div>
<div i-click="class:toggle('show3', '.menu3')">toggle</div>
<div is-click="class:add('show1', '.menu1')">add</div>
<div is-click="class:remove('show2', '.menu2')">remove</div>
<div is-click="class:toggle('show3', '.menu3')">toggle</div>
<!-- End Class with class -->
<!-- Class with tag -->
<div i-click="class:add('show1', 'a')">add</div>
<div i-click="class:remove('show2', 'li')">remove</div>
<div i-click="class:toggle('show3', 'button')">toggle</div>
<div is-click="class:add('show1', 'a')">add</div>
<div is-click="class:remove('show2', 'li')">remove</div>
<div is-click="class:toggle('show3', 'button')">toggle</div>
<!-- End Class with tag -->
<!-- Class with ID -->
<div i-scroll-up="class:add('show1', '#menu1')">add</div>
<div i-scroll-up="class:remove('show2', '#menu2')">remove</div>
<div i-scroll-up="class:toggle('show3', '#menu3')">toggle</div>
<div is-scroll-up="class:add('show1', '#menu1')">add</div>
<div is-scroll-up="class:remove('show2', '#menu2')">remove</div>
<div is-scroll-up="class:toggle('show3', '#menu3')">toggle</div>
<!-- End Class with ID -->
<!-- Class with class -->
<div i-scroll-up="class:add('show1', '.menu1')">add</div>
<div i-scroll-up="class:remove('show2', '.menu2')">remove</div>
<div i-scroll-up="class:toggle('show3', '.menu3')">toggle</div>
<div is-scroll-up="class:add('show1', '.menu1')">add</div>
<div is-scroll-up="class:remove('show2', '.menu2')">remove</div>
<div is-scroll-up="class:toggle('show3', '.menu3')">toggle</div>
<!-- End Class with class -->
<!-- Class with tag -->
<div i-scroll-up="class:add('show1', 'a')">add</div>
<div i-scroll-up="class:remove('show2', 'li')">remove</div>
<div i-scroll-up="class:toggle('show3', 'button')">toggle</div>
<div is-scroll-up="class:add('show1', 'a')">add</div>
<div is-scroll-up="class:remove('show2', 'li')">remove</div>
<div is-scroll-up="class:toggle('show3', 'button')">toggle</div>
<!-- End Class with tag -->
<!-- Class with ID -->
<div i-scroll-down="class:add('show1', '#menu1')">add</div>
<div i-scroll-down="class:remove('show2', '#menu2')">remove</div>
<div i-scroll-down="class:toggle('show3', '#menu3')">toggle</div>
<div is-scroll-down="class:add('show1', '#menu1')">add</div>
<div is-scroll-down="class:remove('show2', '#menu2')">remove</div>
<div is-scroll-down="class:toggle('show3', '#menu3')">toggle</div>
<!-- End Class with ID -->
<!-- Class with class -->
<div i-scroll-down="class:add('show1', '.menu1')">add</div>
<div i-scroll-down="class:remove('show2', '.menu2')">remove</div>
<div i-scroll-down="class:toggle('show3', '.menu3')">toggle</div>
<div is-scroll-down="class:add('show1', '.menu1')">add</div>
<div is-scroll-down="class:remove('show2', '.menu2')">remove</div>
<div is-scroll-down="class:toggle('show3', '.menu3')">toggle</div>
<!-- End Class with class -->
<!-- Class with tag -->
<div i-scroll-down="class:add('show1', 'a')">add</div>
<div i-scroll-down="class:remove('show2', 'li')">remove</div>
<div i-scroll-down="class:toggle('show3', 'button')">toggle</div>
<div is-scroll-down="class:add('show1', 'a')">add</div>
<div is-scroll-down="class:remove('show2', 'li')">remove</div>
<div is-scroll-down="class:toggle('show3', 'button')">toggle</div>
<!-- End Class with tag -->
<!-- Class with ID -->
<div i-hover="class:add('show1', '#menu1')">add</div>
<div i-hover="class:remove('show2', '#menu2')">remove</div>
<div i-hover="class:toggle('show3', '#menu3')">toggle</div>
<div is-hover="class:add('show1', '#menu1')">add</div>
<div is-hover="class:remove('show2', '#menu2')">remove</div>
<div is-hover="class:toggle('show3', '#menu3')">toggle</div>
<!-- End Class with ID -->
<!-- Class with class -->
<div i-hover="class:add('show1', '.menu1')">add</div>
<div i-hover="class:remove('show2', '.menu2')">remove</div>
<div i-hover="class:toggle('show3', '.menu3')">toggle</div>
<div is-hover="class:add('show1', '.menu1')">add</div>
<div is-hover="class:remove('show2', '.menu2')">remove</div>
<div is-hover="class:toggle('show3', '.menu3')">toggle</div>
<!-- End Class with class -->
<!-- Class with tag -->
<div i-hover="class:add('show1', 'a')">add</div>
<div i-hover="class:remove('show2', 'li')">remove</div>
<div i-hover="class:toggle('show3', 'button')">toggle</div>
<div is-hover="class:add('show1', 'a')">add</div>
<div is-hover="class:remove('show2', 'li')">remove</div>
<div is-hover="class:toggle('show3', 'button')">toggle</div>
<!-- End Class with tag -->
<!-- Class with ID -->
<div i-view="class:add('show1', '#menu1')">add</div>
<div i-view="class:remove('show2', '#menu2')">remove</div>
<div i-view="class:toggle('show3', '#menu3')">toggle</div>
<div is-visible="class:add('show1', '#menu1')">add</div>
<div is-visible="class:remove('show2', '#menu2')">remove</div>
<!-- End Class with ID -->
<!-- Class with class -->
<div i-view="class:add('show1', '.menu1')">add</div>
<div i-view="class:remove('show2', '.menu2')">remove</div>
<div i-view="class:toggle('show3', '.menu3')">toggle</div>
<div is-visible="class:add('show1', '.menu1')">add</div>
<div is-visible="class:remove('show2', '.menu2')">remove</div>
<!-- End Class with class -->
<!-- Class with tag -->
<div i-view="class:add('show1', 'a')">add</div>
<div i-view="class:remove('show2', 'li')">remove</div>
<div i-view="class:toggle('show3', 'button')">toggle</div>
<div is-visible="class:add('show1', 'a')">add</div>
<div is-visible="class:remove('show2', 'li')">remove</div>
<!-- End Class with tag -->
<!-- Class with ID -->
<div is-not-visible="class:add('show1', '#menu1')">add</div>
<div is-not-visible="class:remove('show2', '#menu2')">remove</div>
<!-- End Class with ID -->
<!-- Class with class -->
<div is-not-visible="class:add('show1', '.menu1')">add</div>
<div is-not-visible="class:remove('show2', '.menu2')">remove</div>
<!-- End Class with class -->
<!-- Class with tag -->
<div is-not-visible="class:add('show1', 'a')">add</div>
<div is-not-visible="class:remove('show2', 'li')">remove</div>
<!-- End Class with tag -->
<!-- Errors -->
<div i-click="class:dd('show1', '.menu1')">add</div>
<div is-click="class:dd('show1', '.menu1')">add</div>
</body>
</html>