How to implement a carousel with changing cards? #3342
              
                
                  
                  
                    Answered
                  
                  by
                    vladbesson
                  
              
          
                  
                    
                      vladbesson
                    
                  
                
                  asked this question in
                Q&A
              
            -
| 
         Hey! Is it possible to create carousel like that with Motion?  
An infinite carousel with only five cards visible, featuring an animation of the active card changing every three seconds.  | 
  
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            vladbesson
          
      
      
        Aug 9, 2025 
      
    
    Replies: 1 comment
-
| 
         I managed to create such an infinite carousel using motion and AnimatePresence In case anyone needs it, here are two demos: 
  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
      Answer selected by
        vladbesson
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
I managed to create such an infinite carousel using motion and AnimatePresence
In case anyone needs it, here are two demos: