animation not working

why 's animation not working here
No description
No description
11 Replies
majkl
majkl5mo ago
Do you think a screenshot is helpful in terms of looking into the code?
Moataz
Moataz5mo ago
you want repo
Moataz
Moataz5mo ago
ok i will check that later can you see my code ?
majkl
majkl5mo ago
I am not interested in incomplete screnshots. Please give it some time if you require some of mine.
Moataz
Moataz5mo ago
ok i am waiting you
b1mind
b1mind5mo ago
You are doing this in multiple help posts, if you don't want to spend the time to explain to them don't reply. Include #how-to-ask-good-questions and maybe https://pen.new so they actually understand that you are asking for an demo/example of the code. @Moataz You will get help best if you provide the easiest way for someone to test the code and provide help/feedback. Refer to the above comment.
majkl
majkl5mo ago
It is what I do. Though I would expect that when asking, one would provide all details necessary, I understand a novice cannot always express the interntion precisely, but how is it not a no-brainer that a cropped screenshot is worthless??
missymae#2783
missymae#27835mo ago
I think a problem may be useRef in your map() method. useRef wants to store a value, and map() is trying to store many values. You can maybe use an array, or use a different technique to target those elements for changes. https://react.dev/learn/manipulating-the-dom-with-refs https://stackoverflow.com/questions/54940399/how-target-dom-with-react-useref-in-map
Manipulating the DOM with Refs – React
The library for web and native user interfaces
Stack Overflow
How target DOM with react useRef in map
I looking for a solution about get an array of DOM elements with react useRef() hook. example: const Component = () => { // In items, I would like to get an array of DOM element let i...
Moataz
Moataz5mo ago
thanks man
maddog
maddog5mo ago
@missymae#2783 lpi. .i