This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

A part of camera image on site
#4
Hi,

I have used this before:

Give your camera container the custom class 'cam' and make shore to check the box 'always open'

Custom css:

Code:
@-webkit-keyframes Zoom-In /* Safari and Chrome */
{
0%   {opacity:0.5;}
100% {opacity: 1;  width: 100% !important; height: 100% !important;}
 
}

.camzoomin{
 -webkit-animation: Zoom-In 1s !important; /* Safari and Chrome */
 transform-origin: top left;
 position: absolute;
 left: 0px !important;
 top: 0px !important;
 height: 100% !important;
 width: 100% !important;
 max-height: 100% !important;
 max-width: 100% !important;
 overflow: hidden;
 z-index: 100!important;
}

.cam > img {
 border-radius: 10px;
 border-color: #333;
 border-width: 2px;
 border-style: solid;
}

.camzoomin > img {
 position:absolute !important;
 top: 5% !important;
 left: 5% !important;
 width: 90% !important;
 height: 90% !important;
 border-radius: 20px !important;
}

and custom Javascript:

Code:
$(function(){
 
 $(document).ready(function () {

    $('.cam').on('vclick', function( e ) {
       if ($(this).hasClass('camzoomin')){
         $(this).removeClass('camzoomin');
       } else {
         $(this).addClass('camzoomin');
         $(this).find("img").attr('src', $(this).find("img").attr('src') + '?' + Math.random() );
       }
    });
   
 });
 
});

BR,

Erwin
Reply


Messages In This Thread
A part of camera image on site - by buuuudzik - 10.01.2017, 16:30
RE: A part of camera image on site - by Erwin van der Zwart - 11.01.2017, 08:50

Forum Jump: