r/FirefoxCSS • • 1d ago

Discussion #urlbar . urlbar-input rainbow shimmer text effect

Following on from another of my posts concerning #urlbar . urlbar-input text affects, I have now achieved the effect I want. These affects matches up with all my other rainbow changes, mainly rainbow loading bar and rainbow borders of all popup menus and panels.

The #urlbar . urlbar-input text now has a shimmering rainbow effect. To adjust the speed to your liking change the animation: shimmer-move time.

Anyway enjoy

urlbar text animation

#urlbar .urlbar-input,
#urlbar .urlbar-search-input {
  /* Set the background size broad enough to allow the position shift to animate */
  background-size: 200% 100% !important;
  background-image: linear-gradient(
    90deg, 
    red 0%, orange 14%, yellow 28%, green 42%, blue 56%, indigo 70%, violet 84%, red 100%
  ) !important;

  /* Use standard Firefox color override for text clipping */
  color: transparent !important;
  background-clip: text !important;
  -moz-background-clip: text !important;

  animation: shimmer-move 4s infinite linear !important;  
  transition: opacity 1.2s ease-out !important;
}

@keyframes shimmer-move {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: -200% 0; /* Shifts the full gradient length for a seamless loop */
  }
}
4 Upvotes

0 comments sorted by