carousel icons

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10004656
    marcelo2112
    Participant

    In the icon carousel,just before the footer is it possible to make them fix and for instance when you pass the mouse in one logo it changes from black and white to a color one?
    Thx again for the support


    #10004665
    Support
    Keymaster

    Hello, yes, try this:

    HTML:

    <div class="owl-carousel" data-plugin-options='{"items": 5, "singleItem": false}'>
    	<div>
    		<img class="img-responsive saturation" src="img/logos/logo-1.png" alt="">
    	</div>
    	<div>
    		<img class="img-responsive saturation" src="img/logos/logo-2.png" alt="">
    	</div>
    	<div>
    		<img class="img-responsive saturation" src="img/logos/logo-3.png" alt="">
    	</div>
    	<div>
    		<img class="img-responsive saturation" src="img/logos/logo-4.png" alt="">
    	</div>
    	<div>
    		<img class="img-responsive saturation" src="img/logos/logo-5.png" alt="">
    	</div>
    	<div>
    		<img class="img-responsive saturation" src="img/logos/logo-6.png" alt="">
    	</div>
    	<div>
    		<img class="img-responsive saturation" src="img/logos/logo-4.png" alt="">
    	</div>
    	<div>
    		<img class="img-responsive saturation" src="img/logos/logo-2.png" alt="">
    	</div>
    </div>

    CSS: (css/custom.css)

    img.saturation {
    	width: 100%;
    	filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'/></filter></svg>#grayscale");
    	filter: gray;
    	-webkit-filter: grayscale(100%);
    	-webkit-border-radius: 6px;
    	-moz-border-radius: 6px;
    	border-radius: 6px;
    	width: 100%;
    	opacity: 0.5;
    }
    
    img.saturation:hover {
    	-webkit-transform: none;
    	-moz-transform: none;
    	-ms-transform: none;
    	-o-transform: none;
    	transform: none;
    	opacity: 1;
    	filter: none;
    	-webkit-filter: none;
    }

    Thanks.


    #10004668
    marcelo2112
    Participant

    thanks!

    worked great!


Viewing 3 posts - 1 through 3 (of 3 total)

This topic is marked as "RESOLVED" and can not rceive new replies.