button-animation
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -41,3 +41,3 @@ export function buttonAnimation (e,color='#fff') { | ||
} | ||
export function buttonAnimation (c, bg = '#ff7242', dire = 'left') { | ||
export function buttonHover (c, bg = '#ff7242', dire = 'left') { | ||
const style = document.createElement('style') | ||
@@ -120,3 +120,2 @@ const dom = document.querySelector(`.${c}`) | ||
dom.appendChild(style) | ||
dom.classList.add('buttonHover') | ||
} |
{ | ||
"name": "button-animation", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "b站上学习到的按钮点击动画", | ||
@@ -5,0 +5,0 @@ "main": "btnAnimation.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7844
118