Skip to content

DanielBoa/pixelated-hover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

❤️=🟥 Pixelated Hover

Creates a pixelated image hover effect at runtime.

See it in action here.

NOTES:

  • This wasn't really intended for production, just playing around.
  • If your images are loaded from another host ensure you set crossorigin="anonymous" on your img tags as well as your image host supports CORS.

Example

<!-- include css in head -->
<link rel="stylesheet" href="pixelated-hover.css">

<!-- include js at bottom of body -->
<script src="pixelated-hover.js"></script>
<!-- use the following structure  -->
<a href="#" data-pixelated-hover>
  <img src="images/street.jpg" />
</a>
<!-- can optionally choose desired pixel size -->
<a href="#" data-pixelated-hover="10">
  <img src="images/street.jpg" />
</a>

About

❤️=🟥 Creates a pixelated hover effect at runtime.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published