By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.

    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

Can someone replicate this exact animation that is on this website?

            border: 1px solid #000;
            position: relative;
            width: 800px;
            height: 600px;
            overflow: hidden;
            position: absolute;
            background-color: red;
            width: 200%;
            height: 100px;
            transform: rotate(45deg) translate(-150px, -150px);
            left: -70%;
            animation-name: diagonal;
            animation-direction: alternate;
            animation-duration: 2s;
            animation-iteration-count: infinite;
            animation-timing-function: ease;
        @keyframes diagonal {
            0% {
                transform: rotate(45deg) translate(-650px, -150px);
                transform: rotate(45deg) translate(0, -150);
                transform: rotate(45deg) translate(0, -150);
            100% {
                transform: rotate(45deg) translate(150px, -150px);
<div class="wrapper">
<div class="item"></div>

A small sample.
Why can’t the code be copied verbatim, as is?

Is there a reason for that?
I assume you mean the Spotify code.

I have a feeling that the animation is coming from a different source such as a script, in which case you'd need to parse through a lot of js (i assume) to find the relevant parts. I am not saying the code I did is from the sample page. I just researched a diagonal animation and modified what I found to get close to the effect.
Top Bottom