Jump to content
Search Community

Circular Animation Image Gallery

JackPhat test
Moderator Tag

Go to solution Solved by Cassie,

Recommended Posts

Hi, I'm trying to rotate the gallery and it does rotate but it rotates in the wrong way. Can anyone help me?

I want it to rotate in the center.
I'm a newbie here. Sorry if the question was so easy.
I'm currently using ReactJS and I don't know why I can't log in to my CodePen account. It said "Login and Signup is unavailable"
So I'm giving a CodeSandbox link.
Hope you guys can give me some ideas.

 

Link:  circular-animation-image

Link to comment
Share on other sites

Hi @JackPhat welcome to the forum!

 

Your CodeSandbox is not working it says "Sandbox not found". We have all kinds of  Stackblitz starter templates that load all the plugins and have a basic setup how to work in each framework with GSASP, here are the once for React and Next. When working with React please read this article!

 

There are a lot of topics already on the forum about circular ..., sliders, carousels, gallery, ect. Just give it a search and check out this topic, it has some nice resources already. Hope it helps and happy tweening!  

 

 

  • Like 1
Link to comment
Share on other sites

Sorry for wasting your time so much on this problem but I don't know how to set it to edit mode for all users.

But did you see the result?
It did rotate but it rotates on the border line. I don't know why it rotates like that.

I want it to rotate in the center like this GIF.

 

Loop Rotating GIF

Link to comment
Share on other sites

Yeah, I saw that and wanted to debug this, but due to not be able to edit it we can’t.
 

You can set transformOrigin: “center center”, but I don’t know if this fixes the issue. Should be the default? I would start by adding red borders around all your elements, so you can see what the real shapes look like to see on which it is rotating now 

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
On 7/28/2024 at 11:08 PM, Cassie said:

Here you go!

 

codesandbox link

 

You needed to set a width and height on the container and rotate from the center

 

Also for future reference this is where you set access rights in codesandbox.

 

Hope this helped!

 

image.png

Thank you cassie, you made my day. I am also new here. You solved my issue. If I want to know more, I will ask by starting my own thread. When I needed help with my dissertation, I decided to try https://ukwritings.com/dissertation-services The experience was outstanding! The writer was professional and understood exactly what I needed. They helped me focus my research and provide clear, well-organized writing. The final dissertation was delivered ahead of time and exceeded my expectations. I couldn’t have asked for a better service. I highly recommend them!

Thank you cassie, you made my day. I am also new here. You solved my issue. If I want to know more, I will ask by starting my own thread.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...