test

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • Riccardo Atzeni Friend
    #815056

    Hi guys

    how can i use fade in/out effect on ACM Slideshow instead of classic slider?

    thanks

    Saguaros Moderator
    #817947

    Hi @rickvandick,

    Let me check further on this and will get back to you

    Riccardo Atzeni Friend
    #818362

    Hi Saguaros,

    let me know when you have good news 😉

    thanks

    Saguaros Moderator
    #830526

    Hi rickvandick,

    This took time as it requires customization in code. Here is my tweak:

    • I assume that you’re using ACM – Slideshow Style 2 so you open the file: /root/templates/uber/acm/slideshow/tmpl/style-2.php

    • Add class ‘carousel-fade’ like this:

      <div class="acm-slideshow container">
      <div id="acm-slideshow-<?php echo $module->id; ?>" class="carousel slide carousel-fade" data-ride="carousel">
      <?php $count = $helper->getRows('data-s2.img') ?>
        <!-- Indicators -->
    • Then go to file: root/templates/uber/css/custom.css (create this file if it doesn’t exist) and add this css rule:
      .carousel-fade {
      .carousel-inner {
      .item {
      opacity: 0;
      transition-property: opacity;
      }

    .active {
    opacity: 1;
    }

    .active.left,
    .active.right {
    left: 0;
    opacity: 0;
    z-index: 1;
    }

    .next.left,
    .prev.right {
    opacity: 1;
    }
    }

    .carousel-control {
    z-index: 2;
    }
    }

    I attach these 2 files so you can take a look.

    Merry X-mas!!!


    Riccardo Atzeni Friend
    #835057

    Thank you very much @saguaros, it’s exactly what i was looking for!
    Very helpful!

    Last details: if i want to modify the speed of the slideshow?
    What file i need to customize?

    Saguaros Moderator
    #835754

    Hi @rickvandick,

    In above div which you add ‘carousel-fade’ class, you can add ‘data-interval’ attribute eg:

    <div id="acm-slideshow-<?php echo $module->id; ?>" class="carousel slide carousel-fade" data-ride="carousel" data-interval="10000">

    //interval is in milliseconds so 10000 = 10 seconds

    Happy Holidays!!!

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

This topic contains 5 replies, has 2 voices, and was last updated by  Saguaros 8 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum