UNPKG

pranks

Version:

A collection of fun pranks for web pages

68 lines (42 loc) 1.18 kB
# pranks A collection of fun pranks for web pages, including a Matrix-style hacking effect and page rotation animations. ## Installation ```bash npm install pranks ``` ## Usage #### ESM Import ```javascript import "pranks/hacker"; ``` #### CommonJS Import ```javascript require("pranks/hacker"); ``` #### CDN Import You can also include the effects directly via CDN: ```html <!-- Hacker Effect --> <script src="https://cdn.jsdelivr.net/npm/pranks/dist/pranks/hacker/index.js"></script> <!-- Rotation Effect --> <script src="https://cdn.jsdelivr.net/npm/pranks/dist/pranks/rotation/index.js"></script> ``` ### Rotation Effect The rotation effect allows you to add spinning animations to your webpage. #### ESM Import ```javascript import "pranks/rotation"; ``` #### CommonJS Import ```javascript require("pranks/rotation"); ``` ## Pranks ### Hacker [(Demo)](https://pranksjs.vercel.app/hacker-prank) - Matrix-style rain effect with falling Japanese characters - Display a centered "YOU'VE BEEN HACKED" message - Starts the animation after a 3-second delay ### Rotation [(Demo)](https://pranksjs.vercel.app/rotation-prank) - Rotates page ## License MIT