Tagged: ,

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1401810

    Hey I want to use Gif’s as icons on my flip box. I don’t want to upload them from flaticon but want to use which I have on my desktop . Can I use them ?

    #1401835

    You can upload gifs to your media library. However, if you insert them into your elements, and you want to keep any animations you may have, you must use the original gif (not a scaled down version).
    The recalculated files will lose the animation.
    Google times after using it as a featured image (animated gif) no recalculation was done and the maximum width had to be considered.

    #1401845

    Hi sarthakchoudhary,

    It’s possible using custom CSS code, use this code and just replace the background image url:

    .page-id-1052 .avia-icon-grid-container .av-icon-cell-item .icongrid-char {
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        display: inline-block;
        height: 64px;
        width: 64px;
    }
    
    .page-id-1052 .avia-icon-grid-container .av-icon-cell-item .icongrid-char:before {
        display: none;
    }
    
    /* Row:1 Col:1 */
    .page-id-1052 .avia-icon-grid-container .av-row-nr-1.av-cell-1 .icongrid-char {
        background-image: url(https://website.com/wp-content/uploads/2023/3/1.gif);
    }
    
    /* Row:1 Col:2 */
    .page-id-1052 .avia-icon-grid-container .av-row-nr-1.av-cell-2 .icongrid-char {
        background-image: url(https://website.com/wp-content/uploads/2023/3/2.gif);
    }
    
    /* Row:1 Col:3 */
    .page-id-1052 .avia-icon-grid-container .av-row-nr-1.av-cell-3 .icongrid-char {
        background-image: url(https://website.com/wp-content/uploads/2023/3/3.gif);
    }
    
    /* Row:2 Col:1 */
    .page-id-1052 .avia-icon-grid-container .av-row-nr-2.av-cell-1 .icongrid-char {
        background-image: url(https://website.com/wp-content/uploads/2023/3/4.gif);
    }
    
    /* Row:2 Col:2 */
    .page-id-1052 .avia-icon-grid-container .av-row-nr-2.av-cell-2 .icongrid-char {
        background-image: url(https://website.com/wp-content/uploads/2023/3/5.gif);
    }
    
    /* Row:2 Col:3 */
    .page-id-1052 .avia-icon-grid-container .av-row-nr-3.av-cell-3 .icongrid-char {
        background-image: url(https://website.com/wp-content/uploads/2023/3/6.gif);
    }

    Hope it helps.

    Best regards,
    Nikko

    #1402020

    Thankyou it’s working. What should I do if i want to increase size of the icons ?
    Also can I use the same code for applying gifs on other pages which have the boxes by just replacing the page id ?

    #1402083

    Hi sarthakchoudhary,

    Thankyou it’s working. What should I do if i want to increase size of the icons ?
    You’re welcome :) just change the height and width of this part of the code I gave:

    .page-id-1052 .avia-icon-grid-container .av-icon-cell-item .icongrid-char {
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        display: inline-block;
        height: 64px;
        width: 64px;
    }

    Also can I use the same code for applying gifs on other pages which have the boxes by just replacing the page id ?
    Yes, just copy and paste the same code and just replace the page id number.

    Best regards,
    Nikko

    #1402192

    Okay thank you

    #1402237

    Hi sarthakchoudhary,

    You’re welcome :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Use Gif’s as Icons’ is closed to new replies.