Animated Gradient Audio Block

Install Steps

Animated Gradient Audio Block

Submitted by Moov Labs Works with all template families

animatedaudioblock.gif

Step One

Add an Audio Block to any page and upload your audio file.

Screen Shot 2019-06-02 at 6.44.45 PM.png

Step Two

Under Design, set the player style to minimal and the player color to dark. Save the page when done.

dark.png

Step Three

From your Squarespace account, go to the Custom CSS Editor: Design > Advanced > Custom CSS

Step Four

Copy and paste the code below into the Custom CSS Editor box.

// Animated Gradient Audio Player //

.sqs-widgets-audio-player {
  background-image: linear-gradient(-45deg, #53D6FF, #666BE1, #E45372, #F07C63) !important;
  background-size: 400% !important;
  -webkit-animation: Gradient 10s ease infinite !important;
  -moz-animation: Gradient 10s ease infinite !important;
  animation: Gradient 10s ease infinite !important;
  border-radius: 5px;
}


// Animation Keyframes //

@-webkit-keyframes Gradient {
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}
@-moz-keyframes Gradient {
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}
@keyframes Gradient { 
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

Step Five

Change the #53D6FF, #666BE1, #E45372, and #F07C63 color values to the colors of your choice and adjust the border radius to your liking.

Do not change any values to the Animation Keyframes.

Save and refresh the page. 👍

Moov Labs