• When posting, please be aware that artistic nudity is still nudity and not allowed under RpNation rules. Please edit your pictures accordingly!

    Remember to credit artists when using work not your own.

Help hover code confusion ):

summerwine

an angel's kiss in spring
How would one code a hover over this current code? I'm super duper confused.
Code:
[nobr]
[div=background:url('https://66.media.tumblr.com/67be8e06d40c5b3e637b540c6efbed05/tumblr_okbew8zrNI1qbg3s6o4_400.png'); background-size:auto; border-style:transparent; border-radius:30px; width:360px; height:590px;]
[br][/br]
[br][/br]
[div=background:url('https://66.media.tumblr.com/1ee06348aea503ed06a18a268691f9f4/tumblr_ov5sajJMe71w0qr1bo8_250.jpg'); background-size:cover; border-style:transparent; border-radius:100px; width:200px; height:200px; margin:auto;] [/div]
[br][/br]
[center][size=40px][color=black][font=Dancing Script]Natalia Dyer[/font][/color][/size][/center][/div][/nobr]




Natalia Dyer
 
hi hi !
in terms of hovering over this code, are you hovering the entire code or just a certain part? what would you like to happen when you hover over it?

there's a bbcode+ tutorial in regards to hovering if you'd like a link?
there's the RPNation guide and I believe there's another around here that I can find / send to you depending on what you'd like to do?
 
hi hi!

I'm hovering the entire code. When you'd hover over it the code would have more writing, pictures and a different background. Links would be super helpful. (:
 
from my understanding. . . this code as an example, i believe of how to do it:
you'll have to use a lot of classes for specific sections of the cs which could look something like this:
Code:
[nobr][class=hi]
entire code information including width, height, bg
[/class]

[class=trans]
transition: 1s;
position: relative;
transition information including width, height, bg
[/class]

[class name=trans state=hover]
margin-left: information
[/class]

[class=meow]
first background code
[/class]

[class=meowmeow]
second background code
[/class]

[div class=hi][div class=trans]
[div class=meow] text information for your first background
[/div]

[div class=meow]text information for your second background[/div][/div][/div][/nobr]

and then if you just want to hover over a picture, it'll look something like this:
Code:
[center][nobr]
[class=picture]
position: relative;
display: inline-block;
[/class]

[class=text]
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
opacity: 0;
background-color: rgba(0,0,0,0.1);
color: white;
z-index: 2;
[/class]

[class name=text state=hover]
opacity: 1;
[/class]

[div class=picture]
[div class=text]
[div=margin-top: 160px; text-shadow: 2px 2px 4px black; padding: 5px;][font=Playball][size=5]"hello there! quote here"[/size][/font][/div]
[/div]
[div=background: url('imagehere'); border: solid 5px #EFEFEF; width: 500px; height: 213px; margin: auto;][/div][/div][/nobr][/center]

the classes section could help you with the hovering:

i know this isn't hovering, but they also made a good tutorial for tabs and all:
 
summerwine summerwine So something like this
or this?

You can use those as a ref to see how I did the hovers. There are a few ways you can do this, but it really all depends on how you want the hover to work overall. It is covering the entire part you've currently created? Just a section?
 
Fable Fable deer deer - Thank you both so much! I think I was able to successfully do what I wanted. <3

Code:
[nobr]

[class=wrapper]
max-width:400px;
margin:auto;
[/class]

[class=imagebox]
width:90%;
height:590px;
background:url('https://66.media.tumblr.com/67be8e06d40c5b3e637b540c6efbed05/tumblr_okbew8zrNI1qbg3s6o4_400.png');
border-radius: 20px;
[/class]

[class=overlayparent]
display: flex;
align-items: center;
justify-content: center;
max-width:400px;
height:500px;
[/class]

[class=overlay]
display: flex;
width:200px;
height:200px;
margin:auto;
background:url('https://66.media.tumblr.com/1ee06348aea503ed06a18a268691f9f4/tumblr_ov5sajJMe71w0qr1bo8_250.jpg');
border-radius: 100px;
background-size: cover;
[/class]

[class=header]
display: flex;
align-items: center;
justify-content: center;
flex-flow: column nowrap;
text-align:center;
width:100%;
font-family: 'Dancing Script', Impact;
font-size:30px;
color:#fff;
font-size: 40px;
[/class]

[class=parent]
opacity:0.0;
position:relative;
margin:-600px 10px 100px 500px;
width:28%;
height:570px;
transition:  2.3s;
border-radius: 17px;
[/class]

[class name=parent state=hover]
opacity:1.0;
width:1100px;
height:590px;
border-radius: 30px;
padding:10px;
[/class]

[class=content]
width:33%;
height:585px;
background-color:#fff;
overflow: hidden;
padding:2px;
color:#313131;
border-radius: 17px;
text-align: left;
[/class]

[class=textbox]
height: 585px;
width: 100%;
overflow-y: scroll;
padding-right: 45px;
[/class]

[div class=wrapper][div class=imagebox][div class=overlayparent][div class=overlay][div class=header]
[br][/br]
[br][/br]
[br][/br]
[br][/br]
[br][/br]
Cindy Goode[/div][/div][/div][/div][/div]
[div class=parent][div class=content][div class=textbox]wow did i do it?
[/div][/div][/div]
[/nobr]

[class=wrapper] max-width:400px; margin:auto; [/class] [class=imagebox] width:90%; height:590px; background:url('https://66.media.tumblr.com/67be8e06d40c5b3e637b540c6efbed05/tumblr_okbew8zrNI1qbg3s6o4_400.png'); border-radius: 20px; [/class] [class=overlayparent] display: flex; align-items: center; justify-content: center; max-width:400px; height:500px; [/class] [class=overlay] display: flex; width:200px; height:200px; margin:auto; background:url('https://66.media.tumblr.com/1ee06348aea503ed06a18a268691f9f4/tumblr_ov5sajJMe71w0qr1bo8_250.jpg'); border-radius: 100px; background-size: cover; [/class] [class=header] display: flex; align-items: center; justify-content: center; flex-flow: column nowrap; text-align:center; width:100%; font-family: 'Dancing Script', Impact; font-size:30px; color:#fff; font-size: 40px; [/class] [class=parent] opacity:0.0; position:relative; margin:-600px 10px 100px 500px; width:28%; height:570px; transition: 2.3s; border-radius: 17px; [/class] [class name=parent state=hover] opacity:1.0; width:1100px; height:590px; border-radius: 30px; padding:10px; [/class] [class=content] width:33%; height:585px; background-color:#fff; overflow: hidden; padding:2px; color:#313131; border-radius: 17px; text-align: left; [/class] [class=textbox] height: 585px; width: 100%; overflow-y: scroll; padding-right: 45px; [/class] [div class=wrapper][div class=imagebox][div class=overlayparent][div class=overlay][div class=header]




Cindy Goode[/div][/div][/div][/div][/div] [div class=parent][div class=content][div class=textbox]wow did i do it? [/div][/div][/div]
 

Users who are viewing this thread

Similar threads

Back
Top