Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1008985

    My question concerns the image-element with the globe:
    I want to make use of CSS3-Filter-effects: image should displayed in grayscale (this works) and when hovering in colours (this doesnot work).

    This element should work like the one with the lightbulbs (but there I use 2 images, which is not very fine – but if there is only this possibility:
    how can I preload images used in mouseover?).

    I also would like to use this effekt with the content slider below this section.

    #1009266

    Hey Asrada,

    I added this code to the quick css field:

    
    #top .avia-image-container:hover, #top .avia-image-container img:hover, #top .slide-entry .slide-image:hover  {
       -webkit-filter: grayscale(100%);
       -moz-filter: grayscale(100%);
       filter: grayscale(100%);
       transition: all 0.5s ease;
    }
    
    #top .avia-image-container, #top .avia-image-container img, #top .slide-entry .slide-image{
      -webkit-filter: grayscale(0%);
       -moz-filter: grayscale(0%);
       filter: grayscale(0%);
    }
    
    #top a:hover .image-overlay .image-overlay-inside, #top a:hover .image-overlay {
    display: none !important;
    }
    

    as a starting point. It changes the effect of the content slider and “MIT DAMPF FÜR KLIMA UND UNTERNEHMEN” image.

    Best regards,
    Peter

    #1010106

    Hello Peter,
    thank you!
    Yes, for slider it works fine.

    But the image with the globe cannot hover without hovering the text.
    I want – at the beginning – the image to be in grayscale and the text (MIT DAMPD…) in colours (this works).
    And when hovering the image should be in colours.

    I changed your code (in my childtheme), but I am not able to adress in CSS only just the image. Can you please have a look?
    Thank you, best regarde
    Astrid

    CSS is now:
    /* #top .avia-image-container:hover,*/ #top .avia-image-container img:hover {
    -webkit-filter: grayscale(0%);
    -moz-filter: grayscale(0%);
    filter: grayscale(0%);
    transition: all 0.5s ease;
    }

    /*#top .avia-image-container,*/ #top .avia-image-container img{
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    filter: grayscale(100%);

    }

    #1010108

    Hi!

    I added this code to the quick css field:

    
    #top #wrap_all .avia-image-container:hover img {
    -webkit-filter: grayscale(0%);
    -moz-filter: grayscale(0%);
    filter: grayscale(0%);
    transition: all 0.5s ease;
    }
    
    #top #wrap_all .avia-image-container img{
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    filter: grayscale(100%);
    }
    

    and now it should work as you described above :)

    Regards,
    Peter

    #1010811

    Yes, that’s it – thank you!

    #1010886

    Hi Asrada,

    Glad we could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.