Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Translation:
How can I position an element using java script?


Mam animację na streamelements i chciałem przesunąć w niej pewnien obiekt w miejsce w które nie da się go przestawić za pomocą ustawień na streamelements. Jest tam jednak opcja dzięki której otwieramy edytor kodu. Jest tam HTML, CSS, Java Script orac JSON. Myślałem że ten objekt będzie w CSS i sprawa będzie prosta. Niestety ten objekt jest przypisany w JSON oraz w Java Script. Nie wiem jak go przesunąć w miejsce które chcę ma on tylko opcję przesunięcia albo w górę albo w dół z tym że wtedy inny objekt przesuwa się w przeciwnym kierunku by nie najechać na mój obiekt. Ja chcę właśnie by mój obiekt znajdował się na innym po prostu by nachodziły na siebie. Nie za bardzo wiem jak to mam zrobić w JSON i JS.

Translation:
I tried to remove this element from JSON and put it in HTML and edit it in CSS but another difficulty is that this object is not a regular photo or a permanent image but it has numbers that depend on anotherI have an animation on streamelements and I wanted to move a certain object in it to a place where it cannot be moved using the settings on streamelements. However, there is an option thanks to which we open the code editor. There is HTML, CSS, Java Script orac JSON. I thought that this object would be in CSS and the matter will be simple. Unfortunately, this object is assigned in JSON and in Java Script. I do not know how to move it to the place I want it only has the option of moving either up or down with the fact that then another object moves in the opposite direction so as not to invade my object. I just want my object to be on another just to overlap. I don't really know how to do it in JSON and JS.ch factors so it has to be described in Java Script and here lies the biggest problem.

What I have tried:

Próbowałem usunąć ten element z JSON i umieścić go w HTML-u i zedytować go w CSS lecz kolejną trudnością jest fakt iż objekt ten nie jest zwykłym zdjęciem ani stałym obrazkiem lecz ma on liczby które są zależne od innych czynników więc musi być to opisane w Java Script i tu leży największy kłopot.

Translation:
I tried to remove this element from JSON and put it in HTML and edit it in CSS but another difficulty is the fact that this object is not a regular photo or a permanent image but it has numbers that depend on other factors so it must be described in Java Script and here lies the biggest problem.
Posted
Updated 10-Jan-22 10:48am
v2
Comments
Richard Deeming 11-Jan-22 3:50am    
Firstly, this is an English-language site. You need to post your questions in English.

Secondly, if you want someone to help you fix your code, you need to show the relevant parts of your code, explain what you are trying to do, what you have tried, and where you are stuck. You also need to include the full details of any errors.

Remember, we cannot see you screen, access your computer, or read your mind. If you don't explain precisely what the problem is, we can't help you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900