Skip to content
TheChatArchiveThe Chat Archive
gpt-3.5-turbo-0613· openaiHugging Face Suzhen/CodeChat

can you do swirl-like whirlpool gradient for this?:background: radial-gradient(circle at…

  1. User

    can you do swirl-like whirlpool gradient for this?:background: radial-gradient(circle at center center, #eba, #579);

  2. Assistant

    Sure! Here's the code for creating a swirl-like whirlpool gradient using CSS:

    background: radial-gradient(circle at center center, #eba, #579, #ada, #376, #eba);
    background-size: 400% 400%;
    animation: whirlpool 4s infinite linear;
    
    @keyframes whirlpool {
      0% {background-position: 0% 0%;}
      100% {background-position: 100% 100%;}
    }
    

    This code creates a radial gradient with the colors '#eba' and '#579', and adds three additional colors '#ada', '#376', and '#eba'. The background size is set to 400% to create a swirling effect, and the animation "whirlpool" is applied to continuously rotate the gradient.