Skip to content

ismamz/postcss-click

 
 

Repository files navigation

PostCSS Click Example

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

Install dependencies (npm & bower):

$ npm run install

Start

Compile, run a server and watch for changes:

npm run start

Play

Edit index.html and _style.css files and let the magic happens!

Notes

  • Processed styles will be saved in css folder and named just style.css. You don't need touch it.
  • Generated JavaScript file will be saved in js folder as click.js.
  • See postcss-click repo for more plugin options.

License

MIT © Ismael Martínez

About

PostCSS plugin that allows to use the :click pseudo class and implement it in JavaScript

Resources

License

Stars

Watchers

Forks

Packages

No packages published