Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

button-animation

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

button-animation - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

6

btnAnimation.js

@@ -1,2 +0,2 @@

export function buttonAnimation (e,color='#fff') {
export function buttonAnimation (e, color = '#fff') {
const style = document.createElement('style')

@@ -31,4 +31,4 @@ style.innerHTML = '.buttonAnimation {' +

overlay.classList.add('buttonAnimation')
const x = e.clientX - e.target.offsetLeft
const y = e.clientY - e.target.offsetTop
const x = e.clientX - e.target.getBoundingClientRect().left
const y = e.clientY - e.target.getBoundingClientRect().top
overlay.style.left = x + 'px'

@@ -35,0 +35,0 @@ overlay.style.top = y + 'px'

{
"name": "button-animation",
"version": "1.0.7",
"version": "1.0.8",
"description": "b站上学习到的按钮点击动画",

@@ -5,0 +5,0 @@ "main": "btnAnimation.js",

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