Answer the question
In order to leave comments, you need to log in
Each element with the same class hover every n seconds if the mouse is not moving?
There is a regular menu, menu items have their own classes and one common one. I want to make it so that if the user does not move the mouse for N seconds, then auto-hover starts for all elements in order and in a circle with a delay between them of X seconds.
I'm not good at jquery, so please help :)
Answer the question
In order to leave comments, you need to log in
What are you going to consider if you do not have a drive circuit? Without deciding how the engine will open the lid, it is impossible to start counting power.
I hope you don't think that you can just hang the cover on the shaft and connect the motor housing to the table housing.
1. draw a diagram of the mechanism
2. determine the opening speed
3. calculate the opening torque
4. take care that the lid does not close by itself when the motor is turned off.
5. add at least 50% more torque to what happened in step 3
6. pick up a gearbox and motor from the assortment of the store.
Just in case, there are such devices https://www.aliexpress.com/item/4000041321279.html
so as not to fool around with gearboxes and complex mechanics
, the length and power of the most diverse can be
attached to corners of this type: https://www. aliexpress.com/item/32935265038.html
Well, do not forget about the hinges that will fold the lid correctly, purely for example: https://www.aliexpress.com/item/32874592417.html
I also recommend putting a gas lift, there are quite cultural types like these: https://www.aliexpress .com/item/32859356195.html
With a gas lift, the motor will be much easier, you can choose the gas lift force so that even the simplest actuator can handle it.
You make a timer that counts seconds, if N seconds have passed, then you are looking for an element with an active menu class. You look for its index in the array of jquery elements, and change the class. You start the setTimeout function so that it executes every X seconds, provided that the mouse is standing, the function of changing the active class of the menu (create a variable for the current active menu element and overwrite it each time). And hang a handler on the mouseover event so that it removes setTimeOut and resets timer N.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question