div img{ cursor:pointer;

-webkit-transition: all .2s ease-in-out;
-moz-transition: all .2s ease-in-out;
-o-transition: all .2s ease-in-out;
-ms-transition: all .2s ease-in-out;
}

div img:hover {
-webkit-transform: scale(1.1);
-moz-transform: scale(1.1);
-o-transform: scale(1.1);
transform: scale(1.1);
}


.primary-header  {
-webkit-transition: top 800ms; -moz-transition: top 800ms; -o-transition: top 800ms; transition: top 800ms;  display: block; position: fixed; top: -80px; width: 100%;
left:0px; z-index:9;
}

.primary-header.fixed {
top:0px;
}


<?php echo base_url(); ?>assets/front/images/<?php echo $banner_img; ?>

 

Use this php code and get random image by any folder


jQuery(‘document’).ready(function($){
var ht = $(window).height();
var po= ht -80;
//alert(po);

$(“.main-container”).height(po);
});

WordPress.com.

Up ↑