# ribbon.js **Repository Path**: jiangtj/ribbon.js ## Basic Information - **Project Name**: ribbon.js - **Description**: :ribbon: Only 1kb javascript gist to generate a ribbon in your website with HTML5 canvas. - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-03-15 - **Last Updated**: 2022-04-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ribbon.js this is a fork from `https://github.com/hustcc/ribbon.js`, add support for node. ## usage Very easy and simple. ```bash yarn add @jiangtj/ribbon.js ``` ```js import ribbon from '@jiangtj/ribbon.js'; // use ribbon() // or ribbon({ z: -1, // z-index a: 0.6, // alpha s: 90, // size target: 'body' }) ``` If you use vue, `Please add it in mounted()`.