New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

url-motion

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

url-motion

Animate your browser url and make your website 1000 times more attractive.

latest
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

url-motion

Animate your browser url and make your website 1000 times more attractive.

How to use it

First, import by cdn or my installing it

npm:

npm install url-motion -D

cdn:

<script src="https://cdn.jsdelivr.net/npm/url-motion@latest/dist/index.js"></script>

Then, this will be a quite good example of how the API works:

<script>
    window.addEventListener("load", () => {
        console.log(window.PredefinedURLMotions)
        let m = new URLMotion(PredefinedURLMotions.aesthetic(), 500);
        m.start();

        setTimeout(() => {
            m.stop()
        }, 10000);
    })
</script>

here's a list of predefined motions: link

Example of sufix and prefix

myCoolFrames = prefix("Loading: ", PredefinedURLMotions.monkeys())
myCoolFrames2 = sufix(" <- loading", PredefinedURLMotions.hearts())

Typescript

Types are generated, your welcome, ts enthusiasts ;)

FAQs

Package last updated on 07 Feb 2023

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