last week i posted a tip that zooms the main page forum and blog posts when you hover over it well i tweaked it a tad  increasing the zoom by 5% and added a transparency as it zooms as well as added a z-index so the profile icon below it doesn't float over it

the live demo can be seen here

http://www.dreadlockssite.com/main/

the code;

.xg_widget_main .module_blog .blogpost:hover,.xg_widget_main .module_forum div.vcard div.topic:hover {background-color:#14135E;-webkit-transform:scale(1.25);-moz-transform:scale(1.25);-webkit-transition:all .6s ease-out;-moz-transition:all .6s ease-out;opacity:0.70;z-index:999999;}

adjustments;

ofcourse background color should be adjusted to something that matches youtr theme or delete it to have no background color change

scale is the zoom level 1.25 means 125% or 25% above normal 1.35 would zoom 10% more 1.15 10% less
transition speed .6 is 6/10th of a second just over 1/2 a second to complete the ease out animation you can also add a delay like if you want it to wait 1 second then ease out for 1 second  (but i dont think a delay makes sence for this purpose)

opacity 0.70 is 70% opaque or 30% transparent adjust the 0.70 higher towards 1 to be less opaque or lower  to be more see through i settled on 70 which alowed the elements behind it to be sen without making it too unreadable

i had applied the same effectto the forum posts and replies but it made long posts grow too far since both length and width  increased 25%   a long post could completely cover a shorter reply above and below it

thats why i got inspired to add the transparency so you could at least tell there was something behind it, but it didnt solve the problem so i left it out and id not include code to apply the effect to those posts and replies.

for an even cooler effect

add border radius and box shadow to the hover code above

your forum posts that dont have  the border radius and box shadow  till hovered will zoom  the corners go from square to round and the shadow  apear as it transitions

edit:

to add  a floating effect that rounds the corners adds a shadow and zooms all in 1 motion try this code


.xg_widget_main .module_blog .blogpost:hover,.xg_widget_main .module_forum div.vcard div.topic:hover {border:1px solid #ccc;border-radius:50px;-moz-border-radius:50px;-webkit-border-radius:50px;-webkit-box-shadow:6px 6px 10px #ccc;-moz-box-shadow:6px 6px 10px #ccc;box-shadow:6px 6px 10px #ccc;width:535px;-ms-filter:"progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000')";filter:progid:DXImageTransform.Microsoft.Shadow(Strength=4,Direction=135,Color='#000000');-webkit-transform:scale(1.25);-moz-transform:scale(1.25);-webkit-transition:all .6s ease-out;-moz-transition:all .6s ease-out;
z-index:999999;background-color:#fff;padding:1em;}

notes i added a white background u can change that  without the background it acts like theres no background and you see everything behind it

i also added padding to keep the text from extending outside the now rounded borders

that effect can be seen on my new site www.phillyhangout.com

Views: 558

Reply to This

Replies to This Discussion

div.feed-story:hover {background-color:#14135E;-webkit-transform:scale(1.25);-moz-transform:scale(1.25);-webkit-transition:all .6s ease-out;-moz-transition:all .6s ease-out;opacity:0.70;z-index:999999;}

SWEEEET,Thanks so much

did that work/

yes sir it did

o.k 1 more Eagle ,lol..how do i put shadow effect and border effect

where was i when you were hosting this class,lol

haha i just added it right below this though i think you will want to have a background color too

but the code i just added  zoome rounds the corners and adssa a shadow which is really a cool effect

when i dio it on the feed story it still falls behind the main column even with position:relative but

i got a special tweak you may like for the main  page forum and blogs

.xg_widget_main .module_blog .blogpost:hover,.xg_widget_main .module_forum div.vcard div.topic:hover {border:1px solid #ccc;border-radius:50px;-moz-border-radius:50px;-webkit-border-radius:50px;-webkit-box-shadow:6px 6px 10px #ccc;-moz-box-shadow:6px 6px 10px #ccc;box-shadow:6px 6px 10px #ccc;width:535px;-ms-filter:"progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000')";filter:progid:DXImageTransform.Microsoft.Shadow(Strength=4,Direction=135,Color='#000000');-webkit-transform:scale(1.25);-moz-transform:scale(1.25);-webkit-transition:all .6s ease-out;-moz-transition:all .6s ease-out;opacity:0.90;z-index:999999;}

see the effect here www.phillyhangout.com

im probly not going to leave it tho

o.k will do give me a minute

if you dont add a back=ground color tho theres no background and the text and profile pic r]=thats under it shows through 

sorry its  a work in progress i was hand coding it as i created and tested it i had to add a background and padding to perfect it so heres the perfected code


.xg_widget_main .module_blog .blogpost:hover,.xg_widget_main .module_forum div.vcard div.topic:hover {border:1px solid #ccc;border-radius:50px;-moz-border-radius:50px;-webkit-border-radius:50px;-webkit-box-shadow:6px 6px 10px #ccc;-moz-box-shadow:6px 6px 10px #ccc;box-shadow:6px 6px 10px #ccc;width:535px;-ms-filter:"progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000')";filter:progid:DXImageTransform.Microsoft.Shadow(Strength=4,Direction=135,Color='#000000');-webkit-transform:scale(1.25);-moz-transform:scale(1.25);-webkit-transition:all .6s ease-out;-moz-transition:all .6s ease-out;
z-index:999999;background-color:#fff;padding:1em;}

i added the final tweak to the original post the background fades in  the borders round and  the whole thing zooms smoothly  you can play with the time to slow it or speed it up just keep in mind if you adjust 1 you should adjust them all for consistency between browsers

Great! Thanks, man!

RSS

Latest Activity

Paul Corona replied to Suzie Nielsen's discussion 'Watching Cultivating videos- have questions!'
"I send a welcome message to everyone and personalize it:   Welcome to NavyDads.com <...>…"
52 minutes ago
DAvid Cordina replied to kid k's discussion 'Poster ici vos adresses de reseaux NING !' in the group Ning French Networks
"Les réseaux apprenants créés par les Alliances Françaises en…"
1 hour ago
DAvid Cordina joined kid k's group
Thumbnail

Ning French Networks

A group for french network creators!See More
2 hours ago
Violeta replied to Violeta's discussion 'Problemas.. y más problemas.....' in the group Ning Networks en español
"Hola Rosa Maria, ¿ Cómo estás? tanto tiempo! No entiendo si cerraste tus…"
2 hours ago
Bon replied to Bon's discussion 'Cannot Install a new Background in Classic 2.0'
"As of 6:20am today- the page installed----the code, of course had been left in advanced--this…"
2 hours ago
Violeta replied to Violeta's discussion 'Problemas.. y más problemas.....' in the group Ning Networks en español
"¿ Cuál ticket Mayra ? ¡No me llegó nada! Hoy mandé otro…"
2 hours ago

NC for Hire
Elson Tan replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'
"Great news, finally we can add some code to the head!"
3 hours ago
sho allan replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'
"so NICE!!!"
3 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service