Example of postcss-click plugin.
postcss-click is a PostCSS plugin that allows to use the :click pseudo class and implement it in JavaScript.
This example uses Grunt and BrowserSync.
Clone or Download
git clone https://github.com/ismamz/postcss-click.git
Install dependencies (npm & bower):
$ npm run install
Compile, run a server and watch for changes:
npm run start
Edit index.html and _style.css files and let the magic happens!
- Processed styles will be saved in
cssfolder and named juststyle.css. You don't need touch it. - Generated JavaScript file will be saved in
jsfolder asclick.js. - See postcss-click repo for more plugin options.
MIT © Ismael Martínez