Day # 33: Corgi ranking



A couple of weeks ago I ran into a website that had this particular effect when you hovered on some sections. The elements seemed to increase in size, while the others stayed in the background, kinda blurry.

I decided to copy that effect for today’s website, a tiny ranking on the cutest corgis. I figured I would list them in separate div’s with their respective pictures and names. 


The key here is to set the properties of each one of those div’s when you put the cursor over them. By just focusing on the filter and opacity for the ones that are not featured, and then increasing the size of that div that will display, we are able to create an outstanding effect for it: 


.box:hover .list {

    filter: blur(5px);

    opacity: 0.25;

}


.box .list:hover {

    box-shadow: -10px 20px 35px rgba(0,0,0,.15);

    transform: scale(1.3);

    filter: blur(0px);

    opacity: 1;

}


Comments

Popular posts from this blog

Day # 19: Checkbox animation

Day # 12: Typewriter Effect

Day # 53: Icon text