CSS for rotating images and drop shadow like example
New here? Learn about Bountify and follow @bountify to get notified of new bounties! x

I'm in love with this page

https://www.fullstory.com/features/

specifically this:

https://imgur.com/CBHd1cp

I just need some CSS to rotate images like this and also set a backdrop.

It also needs to run on FF/IE/Chrome... fairly modern. Within 1-2 year old browsers is fine and I think it will work with all if CSS transforms are used.

Hi i've tried.. is this whats intended https://ibb.co/jFaHOp ?
SilverHood Apps 2 months ago
Guess its 2hrs remaining, kindly respond to the solution (s) provided 🙂
SilverHood Apps 1 month ago
awarded to farolanf

Crowdsource coding tasks.

2 Solutions


Hi @burtonator, here's a possible solution : and
its o/p: https://ibb.co/jFaHOp (old)

Edit 2: Added Left div, smooth shadow : and its o/p: https://ibb.co/fQe8w9

<!DOCTYPE html>
<html>
<head>
<style> 

#tilt_container {
    position: relative;
    height: 150px;
    width: 150px;
    margin-left: 60px;
    border: 1px solid blue; <!-- omit this if no border is needed -->
    -webkit-perspective: 100px; /* Safari 4-8  */
    perspective: 100px;
}
.right {
    width: 150px;
    height: 80px;
    background-color: yellow;
    -webkit-transform-style: preserve-3d; /* Safari 3-8  */    
    -webkit-transform: rotateY(-10deg); /* Safari 3-8  */
    transform-style: preserve-3d;
    transform: rotateY(-10deg);
    padding: 15px;
    border-radius: 5px;
    /* Safari 3-4, iOS 4.0.2 - 4.2, Android 2.3+ */
    -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);  
    /* Firefox 3.5 - 3.6 */
   -moz-box-shadow:    0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);  
   /* Opera 10.5, IE 9, Firefox 4+, Chrome 6+, iOS 5 */
   box-shadow:        0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);  

}
.left {
    width: 150px;
    height: 80px;
    margin-left: 20px;
    background-color: yellow;
    -webkit-transform-style: preserve-3d; /* Safari 3-8  */    
    -webkit-transform: rotateY(10deg); /* Safari 3-8  */
    transform-style: preserve-3d;
    transform: rotateY(10deg);
    padding: 15px;
    border-radius: 5px;
    /* Safari 3-4, iOS 4.0.2 - 4.2, Android 2.3+ */
    -webkit-box-shadow:0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);  
    /* Firefox 3.5 - 3.6 */
   -moz-box-shadow:    0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);  
   /* Opera 10.5, IE 9, Firefox 4+, Chrome 6+, iOS 5 */
   box-shadow:        0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);  
}

</style>
</head>
<body>
<h1>The transform Property</h1>

<div id="tilt_container">
<div class="right">Hello World!Hello World!Hello World!Hello World!Hello World!Hello World!</div>
</div>
<div id="tilt_container">
<div class="left">Hello World!Hello World!Hello World!Hello World!Hello World!Hello World!</div>
</div>
<br>

</body>
</html>
Winning solution
View Timeline