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

button-animations

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

button-animations

Button animation, typically refers to the visual effects applied to a button element on a website or application to make it more interactive and engaging for users.

  • 0.1.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

demo export default function buttonAnimations ({ href = "/", title = "Trun on", data_back = "Trun on", data_front = "Trun off" }) { return ( ); };

css .btn-flip { opacity: 1; outline: 0; font-family: cursive; color: #fff; line-height: 48px; position: relative; text-align: center; letter-spacing: 1px; display: inline-block; text-decoration: none; text-transform: uppercase; font-size: 16px; content: attr(data-back);

&:hover {

&:after {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

&:before {
  opacity: 0;
  transform: translateY(50%) rotateX(90deg);
}

}

&:after { top: 0; left: 0; opacity: 0; width: 100%; border-radius: 6px; color: white; display: block; transition: 0.5s; position: absolute; background: #1e8cff; box-shadow: -2px 2px 6px rgba(30, 140, 255, 0.4); content: attr(data-back); transform: translateY(-50%) rotateX(90deg); }

&:before { top: 0; left: 0; opacity: 1; color: white; display: block; padding: 0 30px; line-height: 48px; border-radius: 6px; transition: 0.5s; position: relative; background: #1e8cff; border: 1px solid #1e8cff; content: attr(data-front); transform: translateY(0) rotateX(0); }

.back { overflow: hidden; height: 0px; } }

FAQs

Package last updated on 22 Aug 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

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