Tags: float, floating, animation, floating animation
Description:
i nearly drove myself crazy trying to figure out how to make things float so i figured i'd help other people out by posting it here (and if here isn't the right place for it, sorry!)
you'll take whats posted in the layout code section and put it at the very bottom of your style code, right above the last /style is, and anywhere you want something to float you'll toss in "animation: floating 3s ease-in-out infinite"
if you want the whole profile to float you'll put it where the main section is, so for example from my profile code it would look like this!:
main {
background-color: #F79BB7;
color: white;
animation: floating 3s ease-in-out infinite
}
play around with where you put it to see what you can make float, and have fun! [EDIT] i didn't realize until now it deleted part of my tutorial, im so sorry! i've just fixed it and, since im here, i'll plug this link here https://nein-mc.neocities.org/csstest/ for coding your profile in real time, it helps with playing around!
Copy and paste this code into the "About me" section of your Profile to use it.
Caution: This Layout was not inspected by SpaceHey — use it at your own risk.
Comments
Displaying 20 of 20 comments ( View all | Add Comment )
⛧𝕽𝕺𝖃𝕴𝕰_𝕽𝕬𝕮𝕮𝕺𝕺𝕹⛧
Do you think you can add it in my code? I really don't know where I should put it lol
Report Comment
✦
everytime i put it- it just show into the abt me section and it doesnt like- work lol..
can u help me¿
comment on my profile so i dont forget to give u my layout :3
Report Comment
Alakay🎸⋆⭒˚。⋆
using.
Report Comment
QQ
hellooo im sorry to disturb you but i got lost where to put it, i tried putting it around but sadly nothing seem to work ? thank you so much for your time in advance
Report Comment
★boy kisser★
hey! im not sure if its meant to do it but the code makes all the gifs outside the box go inside of it and its a little annoying, can i change this somehow?
Report Comment
jadeskullz
hi!! can u please help me w mine? ill share u my code x_x
Report Comment
what code do u use to do the floating animation?
by isita; ; Report
MindlightXD
can u help me please?
Report Comment
Xx_marlowe_xX
can u help with mine pls
Report Comment
wynter ☆
hi ! sorry i'm rlly confused on how the 'main' in the code works and how to make my whole profile float . could u help me ? T.T
Report Comment
sure! if you send me the code you're using over pastebin i could probably get it working for you :O
by remy; ; Report
ermm wut is pastebin o.0 SORRY ! T,T
by wynter ☆; ; Report
pastebin is a website where you can post plain text and then upload it kind of like a link, its helpful for sharing a lot of text (like code for example!) without making the scrollbar really long
by remy; ; Report
oh ok ! i made an account , should i copy and paste my layout into pastebin and then create a link ?
by wynter ☆; ; Report
Hiii!!, can you help me plzzz? TT
by zentellitaa; ; Report
'*•.¸♡ SaraKa ♡¸.•*'
Hi ! Sorry, could u help me ? ( ; ω ; ) Im having a hard time making it work
Report Comment
hi sure! if you send me your code through a pastebin or something i'll see whats up :O
by remy; ; Report
xavier (editing layout)
The code only worked once and after exiting out of my profile, it no longer floated. How can I fix this?
Report Comment
im not sure? it should still work when you exit the screen... if you could pop over your code in a pastebin or something i could see whats up with it :O
by remy; ; Report
mooniesoph
thank youuu!!! totally usinggg
Report Comment
Rayvv
omg tysm!! I was so confused on how ppl did this!
Report Comment
‼ GUMNUM💚👾
this seems very cool , but i'm having some trouble applying it to my profile ! i added the code to my about me and it wasn't doing anything . DD:
Report Comment
oh no! if you'd like i could look at the code for you to see if somethings out of wack :O
by remy; ; Report
plush
Im trying to figure out where to put it in my main section but nothing is working, is it okay if i just send you my code and ou can try to figure it out? im new to coding :3
Report Comment
hey! sorry for the late reply, totally feel free to toss the code to me in a pastebin & i'll check it out :D
by remy; ; Report
spacestarryy🍉
Will try to use it
Report Comment
four/dash
off topic but how do you get the little screen thingy on your profile? and how do you get music to play?
Report Comment
i put the code for the screen thingy here! https://pastebin.com/3xwSCGTu as for the music player, i'd suggest searching the music tag in layouts to find one that works for you :O
by remy; ; Report
ʚ lawliet ! ɞ
how do you do this?? sorta confused
Report Comment
all good! i'll try to explain it better. so you take what i put in the layout code (minus the credit part) and drop it all the way down at the bottom of your main layout code, where the last is.
next, whatever you want to have the bobbing animation needs the line "animation: floating 3s ease-in-out infinite" added to it, this part takes some trial in error in finding out what lines up to what.
if you want your profile to move but not the rest of the page you would put it in the container labeled main, if your layout code doesn't have something that says "main" you can add it there on your own (presumably) without breaking things!
i'd highly suggest playing around with this website https://nein-mc.neocities.org/csstest/ to test things out live so you can troubleshoot right away!
by remy; ; Report
** where last /style thing is, it cut it out in my message fsr 6_9
by remy; ; Report
oh i see, thank you so much!
by ʚ lawliet ! ɞ; ; Report
anytime, hope it works out!
by remy; ; Report
um, so sorry im still so confused :( sorry if im bothering im just new and still trying to figure out how to even put a bg lmao
by ʚ lawliet ! ɞ; ; Report
oh no not a bother at all! im happy to help, honestly if you want you could throw your layout code into a pastebin and i could see if i could make it work :O?
by remy; ; Report
which layout code? i have a few,, and whats a pastebin?
by ʚ lawliet ! ɞ; ; Report
pastebin is a website where you can paste and share large chunks of text easier, i'd say send whatever code is the majority of your page? or all of it if thats easier for you. i'll see what i can do!
by remy; ; Report
ohh alright! how will you be able to see it? do i send the link to you in IM?
by ʚ lawliet ! ɞ; ; Report
yeah you can im me! just send me the pastebin by scrolling down and clicking the "publish paste" button, you can make it an unlisted paste if you'd like, and then IM me the link to it :O
by remy; ; Report
witch
it dosen't work for me whyy
Report Comment
oh no!! could it maybe be the placement? coding can be kinda fussy about where it is. if you'd like you could i could maybe take a look at it with your page's code?
by remy; ; Report
David
Thanks so much for this! Fits in great with my layout :))
Report Comment