How to move an image in HTML/CSS using x/y coordinates?


Joined
Apr 7, 2022
Messages
1
Reaction score
0
I'm sorry if this is a silly question, as I'm extremely new to coding and can't figure out how to do this. I would like to make a pagedoll for my neocities page. Any help is greatly appreciated!
 
Ad

Advertisements

Joined
Mar 11, 2022
Messages
82
Reaction score
8
If you tell me what a pagedoll is.

Well, there is many ways to move something from point A to point B

Code:
<style>
.moveMe{position:absolute; left:50%; top:50%; transition: left 2s, top 4s; cursor:pointer;}
.moveMe:hover{left:10%; top:10%;}
</style>
<div class="moveMe">Hover me</div>

Have a look here
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top