A simple plugin for text marquee using jQuery and css with some minimal customization for now.
Bounce Mode | Loop Mode |
- NPM:
npm install jquery-text-marquee
- CDN: jsdelivr.com
<script src="https://cdn.jsdelivr.net/npm/jquery-text-marquee@0/dist/jquery.text-marquee.min.js"></script>
- Download: zip
-
Include jQuery:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
-
Include plugin's code:
<script src="dist/jquery.text-marquee.min.js"></script>
-
Call the plugin:
$("#my-text-marquee").textMarquee(options);
You can customize the plugin by passing an object of properties. Here's a list of all properties and it's default values:
$("#my-text-marquee").textMarquee({
mode: 'bounce'
});
Sets the type of animation. Available modes are:
bounce
,loop
Default value: 'bounce'
Check CONTRIBUTING.md for more information.
MIT License © Stefano Marra