Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #83974

    Zach W
    Participant

    Hi there-

    Are there any animations you can add in x theme?

    My url is: http://zachswebdesigns.com

    I want the images that lead you to the pages on my home screen to enlarge when you hover over them. This features is included in the demo of customizr. Is there a way to add this? (custom css or something)

    Thanks!

    Also, I wanted to thank everyone in the forum (especially the support people).
    I use it so much and I always get my problem solved. Thanks again!

    #83987

    Nabeel A
    Moderator

    Hey Zach,

    You can enlarge the images on hover by adding the Custom CSS via Customizer. Just for an example you can do it like this.

    img:hover {
    width: 150%; /* If originally it was 100% */
    }

    Also you can use the CSS transition property to give it a good animation feel.

    Let us know if you need any further assistance on this.

    #83999

    Zach W
    Participant

    What is the transition property?

    #84002

    Zach W
    Participant

    Also, I want it only on select images

    #84017

    Nabeel A
    Moderator

    Hey Zack,

    Here is an example with transition property:

    img:hover {
        width: 100px;
        height: 100px;
        -webkit-transition: width 2s; /* For Safari 3.1 to 6.0 */
        transition: width 2s;
    }

    Give the images a separate class and apply this CSS on it. This will ensure only those images will get animated for which you have given a class.

    #84069

    Zach W
    Participant

    Hi again-

    How do I give the image a separate class?

    #84072

    Nabeel A
    Moderator

    Hey Zach,

    You can give an image a class like this:

    <img class="my-class" src="/path/" alt="" />

    You will need to switch from visual editor to text editor to do this.

    #84082

    Zach W
    Participant
    This reply has been marked as private.
    #84084

    Nabeel A
    Moderator

    Hey Zach,

    Define images like this in text editor

    <img class="my-class" src="/path/" alt="" />

    then use this class in customizer to add CSS code like this:

    .my-class:hover {
        width: 150%;
        height: 150%;
        -webkit-transition: width 2s; /* For Safari 3.1 to 6.0 */
        transition: width 2s;
    }
    

    Hopefully this explains better!