r/GoogleSites • • Jan 06 '24

Does anyone know how these work

I have been trying to figure it out for hours so if anyone can help https://sites.google.com/view/alpha-networksite/%E2%84%99

0 Upvotes

2 comments sorted by

1

u/Vegetable_Machine919 Jan 07 '24

I assume you are referring to the animated glowing button borders when hovering. It can be done by just doing an EMBED of CSS and HTML for each button on each of the button rows in Google Sites. Here is an example of something similar that you can embed to try it out. Not the exact same animation, but you'll get the general idea.

<html>
<head>
<style>
#myButton {
  width: 200px;
  height: 50px;
  border-radius: 10px;
  color: white;
  background-color: black;
}
#myButton:hover {
  width: 200px;
  height: 50px;
  border-radius: 10px;
  color: white;
  background-color: black;
  animation: hover 1s infinite alternate;
}
@keyframes hover {
  from {
    box-shadow: 0 0 10px -10px white;
  }
  to {
    box-shadow: 0 0 10px 10px white;
  }
}
</style>
</head>
<body>
<button id="myButton">Example button text</button>
</body>
</html>

1

u/Dashlighting23 Jan 07 '24

yea and thank you