Docs / Components / Hero button
Hero button
A sparkle call-to-action button for landing pages: a dark pill that turns brand-coloured on hover, with twinkling stars, a spark line round the edge and particles. No GSAP, respects reduced motion.
Use it
One stylesheet and one script from the CDN, pinned to v1.3.0:
<link rel="stylesheet" href="https://acecss.dev/v1.3.0/ace.min.css"
integrity="sha384-zHAwOqjifsc0D+iUvzD1a4W0R2g0BOK9AqQJZGakUEp/Tm5IUcP07R9xkY0q/stj" crossorigin="anonymous">
<script src="https://acecss.dev/v1.3.0/ace-hero.min.js" defer
integrity="sha384-9GbyxTfs2krubP46OnEkVVYjds58yGjr3EF3P1CAujQqzY/qB9ccrF7YIQIaWif5" crossorigin="anonymous"></script>Or from npm:
npm i @acecss/core import '@acecss/core' import '@acecss/core/hero'
Bundlers, Tailwind, every script in one file and self-hosting: Install.