No replies
wax
wax's picture
Offline
newbie
Akron
Last seen: 43 weeks 4 days ago
Akron
Timezone: GMT-5
Joined: 2016-12-20
Posts: 1
Points: 2

I just created a new plugin for CSS that allows you to target parents with a rebel selector (^), style elements using JS events (pseudo-classes aka pseudo-events) and a new dynamic property called "attribute" for toggling attribute values on CSS init or when a pseudo-event is triggered.

You can now style elements with something like:

.child:mouseover ^ .parent { attribute: class hover on; }

If you're into the Leafo SCSS compiler, I have added instructions in the documentation to turn the Waxy CSS plugin on with its SCSS parsing capability as well.

Check it out and let me know what you think at the homestead http://code.sealedwax.com or download it on GitHub https://github.com/SealedWax/Waxy/releases

Thanks!!