New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jquery.marker-animation

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jquery.marker-animation

Marker animation jQuery plugin

  • 1.5.21
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
23
decreased by-78.5%
Maintainers
1
Weekly downloads
 
Created
Source

jQuery Marker Animation

npm version CI Status codecov CodeFactor License: MIT

Read this in other languages: English, 日本語.

jQuery plugin to add under line animation like highlighter.

Demonstration

Table of Contents

Details

Screenshot

Behavior

Behavior

Installation

npm

https://www.npmjs.com/package/jquery.marker-animation

npm install --save jquery.marker-animation

Browser

Download Release version and enqueue script.

<script type="text/javascript" src="/assets/jquery.marker-animation/index.js"></script>

WordPress

GitHub

Usage

Hello, Dolly <span class="marker-animation">Well, hello, Dolly</span> Hello, Dolly
<script>
    $('.marker-animation').markerAnimation();
</script>

Options

color

Set the color of line

$('.marker-animation').markerAnimation({
    color: '#fe9'
});

thickness

Set the thickness of line

$('.marker-animation').markerAnimation({
    thickness: '.6em'
});

duration

Set the time to complete drawing a line

$('.marker-animation').markerAnimation({
    duration: '2s'
});

delay

Set the time to start drawing a line

$('.marker-animation').markerAnimation({
    duration: '.1s'
});

font_weight

Set the thickness of characters

$('.marker-animation').markerAnimation({
    font_weight: 'bold'
});

[default = bold]
If you do not want to make it bold, please set null.

repeat

Set whether to repeat the animation

$('.marker-animation').markerAnimation({
    repeat: false
});

If this set to true, the animation will be executed again when it is off screen and displayed again.

stripe

Set whether to make it stripe design

$('.marker-animation').markerAnimation({
    stripe: false
});

If this set to true, the animation will not be executed.

stripe

rtl

Set whether to support rtl

$('.marker-animation').markerAnimation({
    rtl: false
});

How to set the value for each

You can set options in the following format.

data-ma_[option name]

e.g. Change color

Hello, Dolly <span class="marker-animation" data-ma_color="red">Well, hello, Dolly</span> Hello, Dolly

In this example, the color of the line is red.

e.g Multiple options

Hello, Dolly <span class="marker-animation" data-ma_repeat="true" data-ma_font_weight="null" data-ma_delay="2s">Well, hello, Dolly</span> Hello, Dolly

In this example, the options below are set.

  • Repeat animation
  • Not bold
  • 2sec delay animation

Keywords

FAQs

Package last updated on 07 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc