huazaihuola / cyberpunk-style-image

Cyberpunk Style Image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cyberpunk Style Image

Build Status Commitizen friendly semantic-release

This simple plugin was an exercise to practice the clip-path property. With :hover the image will alter some opacity and we apply a nice-looking hue-rotate effect.

Installation

yarn add cyberpunk-style-image

npm install cyberpunk-style-image --save

How to use it

Here's an example:

<!-- index.html -->

<div class="future-image-cover" data-img="image_url.png"></div>
// script.js

import cyberImage from 'cyberpunk-style-image';

cyberImage(document.getElementById('test'), './img/photo.jpg');

ToDo

  • Responsive image
  • Improve :hover effect

About

Cyberpunk Style Image

License:MIT License


Languages

Language:JavaScript 47.9%Language:Stylus 44.1%Language:HTML 8.0%