How to determine if an item is onscreen?

I'm looking for some code (HTML, CSS, or JS) that will allow me to go to the next step of a guide if an item is on-screen and Step 9 if the item is not on-screen.

The item doesn't have any text, but it is labeled in our code as .lg-upperfield-chooser__location, and it may or may not appear onscreen.

So if the item IS onscreen, go to the next step, if it IS NOT onscreen, go to Step 9.

Any help would be appreciated.

0

コメント

1件のコメント

サインインしてコメントを残してください。

お探しのものを見つけられませんでしたか?

新規投稿