Divano - Theme documentation
Version 1.1.0

Stylesheets

First of all, you need to include all needed css files. Make sure that the main theme css " theme.css" is the last one, it will apply all basic theme files. Media queries for responsive preview are included!

            <link rel="stylesheet" media="all" href="css/bootstrap.css" />
<link rel="stylesheet" media="all" href="css/animate.css" />
<link rel="stylesheet" media="all" href="css/font-awesome.css" />
<link rel="stylesheet" media="all" href="css/ion-range-slider.css" />
<link rel="stylesheet" media="all" href="css/linear-icons.css" />
<link rel="stylesheet" media="all" href="css/magnific-popup.css" />
<link rel="stylesheet" media="all" href="css/owl.carousel.css" />
<link rel="stylesheet" media="all" href="css/theme.css" />
                    

Javascript

Add all main .js files to your document. Options and initalizations are in " main.js"


<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/ion.rangeSlider.js"></script>
<script src="js/magnific-popup.js"></script>
<script src="js/owl.carousel.js"></script>
<script src="js/tilt.jquery.js"></script>
<script src="js/jquery.easypiechart.js"></script>
<script src="js/bigtext.js"></script>
<script src="js/main.js"></script>
    

Page loader

Page loader markup needs to be firs element after "body" tag.

Markup of loader

<div class="page-loader">
    <div class="spinner-border" role="status">
        <span class="sr-only">Loading...</span>
    </div>
</div>

Loader javascript

Be sure that $(window).bind("load", function () {...} cannot be inside $(function() {...}) shorthand for $( document ).ready()

$(window).on("load", function () {
setTimeout(function () {
$('.page-loader').addClass('loaded');
}, 1000);
})

Frontpage slider

Markup example of slider

Animation are included and it can be called on data-amination attributes. List of supported animations are here

            
<div class="header-content">

    <div class="owl-slider owl-carousel owl-theme">

        <!--Slide item-->

        <div class="item d-flex align-items-center" style="background-image:url(IMAGE_PATH)">

            <div class="container">

                <!--Caption-->

                <div class="caption">
                    <div class="animated" data-start="fadeInUp">
                        <div class="promo pt-3">
                            <div class="title title-sm p-0 m-0"><!--Text--></div>
                        </div>
                    </div>
                    <div class="animated" data-start="fadeInUp">
                        <!--Text-->
                    </div>
                    <div class="animated" data-start="fadeInUp">
                        <div class="pt-3">
                            <a href="#" target="_blank" class="btn btn-outline-warning"><!--Text--></a>
                            <a href="#" target="_blank" class="btn btn-outline-light"> <!--Text--></a>
                        </div>
                    </div>
                    <div class="animated" data-start="fadeInUp">
                        <div class="promo pt-5">
                            <div class="h6 p-0 m-0"><!--Text--></div>
                            <div class="price">
                                <span><!--Text--></span>
                                <span><!--Text--></span>
                            </div>
                            <small><!--Text--></small>
                        </div>
                    </div>
                </div>

            </div>

        </div>

    </div>

</div>
                
            

Initalize the plugin

For more documentation please visit Owl Carousel webiste

            
// Frontpage slider
// ----------------------------------------------------------------

var arrowIcons = [
    '<span class="icon icon-chevron-left"></span>',
    '<span class="icon icon-chevron-right"></span>'
];


$.each($(".owl-slider"), function (i, n) {

    var $n = $(n);

    $n.owlCarousel({
        items: 1,
        loop: true,
        // spacing
        margin: 0,
        stagePadding: 0,
        // navigation
        nav: true,
        dots: false,
        navText: arrowIcons,
        // animation effects
        smartSpeed: 950,
        onTranslated: startAnimation,
        onTranslate: resetAnimation,
        animateIn: 'fadeIn',
        animateOut: 'fadeOut'
    });

    resetAnimation(); // reset effects all on initalization
    startAnimation(); // start animation on first slide

    function startAnimation(event) {
        // find active slide
        var activeItem = $(n).find('.owl-item.active'),
            timeDelay = 100;

        $.each(activeItem.find('.animated'), function (j, m) {
            // catch active slide
            var item = $(m);
            item.css('animation-delay', timeDelay + 'ms');
            timeDelay = timeDelay + 180;
            // add animation
            item.removeClass('fadeOut');
            item.addClass(item.data('start'));
        });
    }

    function resetAnimation(event) {
        // catch all slides
        var items = $(n).find('.owl-item');
            // for each add animation end
            $.each(items.find('.animated'), function (j, m) {
                var item = $(m);
                item.removeClass(item.data('start'));
                item.addClass('fadeOut');
            });
    }
    var navHeight = $('nav').height();

    if ($(n).hasClass('owl-slider-fullscreen')) {
        $('.header-content .item').height($(window).height() - navHeight);
    }

});
            
            

Icons slider

Markup example of slider

All furniture icons examples are available in the shorcodes page. Here is an example to generate a markup and initalize javascript function.

Set custom property "data-icons" to show number of icons on desktop

            
<div class="owl-icons-wrapper">
    <div class="container">
        <div class="owl-icons owl-carousel owl-theme" data-icons="8">

            <!--icon item-->

            <a href="#">
                <figure>
                    <div class="image">
                        <img src="IMAGE-PATH" alt="Alternate Text" />
                    </div>
                    <figcaption>Your title</figcaption>
                </figure>
            </a>

        </div> 
    </div>
</div>
                
            

Initalize the plugin

            
$.each($(".owl-icons"), function (i, n) {

    $(n).owlCarousel({
        items: 6,
        loop: true,
        // spacing
        margin: 0,
        stagePadding: 0,
        // navigation
        nav: true,
        dots: false,
        navText: arrowIcons,
        // animation effects
        smartSpeed: 950,
        responsive: {
            0: {
                items: 4,
                nav: true
            },
            600: {
                items: 4,
                nav: false
            },
            1000: {
                items: $(n).data("icons"),
                nav: true,
                loop: false
            }
        }
    });

});
            
            

Don't repeat variable "arrowIcons" if already included.

3D hover cards

Markup example of slider

Display 3d hover effect with data atribute "data-3d"

            
<div class="blog blog-block">
    <div class="container">
        <div class="row text-center">

            <!--Item-->

            <div class="col-md-4">
                <article>
                    <div data-3d>
                        <a href="#">
                            <div class="image">
                                <img src="IMAGE_PATH" alt="" />
                            </div>
                            <div class="entry entry-block">
                                <div class="date">...</div>
                                <div class="title">
                                    <h2 class="h4">...</h2>
                                </div>
                                <div class="description">
                                    <p>...</p>
                                </div>
                            </div>
                            <div class="show-more">
                                <span class="btn btn-clean">...</span>
                            </div>
                        </a>
                    </div>
                </article>
            </div>

        </div>
    </div>
</div>
                
            

Initalize the plugin

            
// hover3d
// ----------------------------------------------------------------

$('[data-3d]').tilt({
    glare: true,
    maxTilt: 3,
    maxGlare: 1
});
            
            

Team figures

Markup example of team

            
<div class="team">
    <div class="container">
        <div class="row">

            <!--Team member-->

            <div class="col-md-3" data-3d>
                <article>
                    <div class="details details-text">
                        <div class="inner">
                            <h5 class="title">...</h5>
                            <h6 class="title">...</h6>
                        </div>
                    </div>
                    <div class="image">
                        <img src="assets/images/person-4.jpg" alt="" />
                    </div>
                    <div class="details details-social">
                        <div class="inner">
                            <a href="#"><i class="fa fa-facebook"></i></a>
                            <a href="#"><i class="fa fa-twitter"></i></a>
                            <a href="#"><i class="fa fa-google-plus"></i></a>
                            <a href="#"><i class="fa fa-linkedin"></i></a>
                        </div>
                    </div>
                </article>
            </div>

        </div>
    </div>
</div>

            

Instagram

Markup example of instagram

            
<div class="instagram">

    <header>
        <h2 class="h6 title">
            Follow us <br>
            <i class="fa fa-instagram fa-3x"></i> <br>
            #Divano
        </h2>
    </header>

    <div class="gallery clearfix">

        <!--item-->

        <a class="item" href="#">
            <img src="IMAGE_PATH" alt="">
        </a>

    </div> 
</div>

            

Product grid

Markup example of product grid


<div class="products">
    <div class="container">
        <div class="row">

            <!--Product item-->

            <div class="col-6 col-lg-3">

                <article>
                    <div class="info">
                        <span class="add-favorite">
                            <a href="javascript:void(0);" data-title="Add to favorites" data-title-added="Added to favorites list">
                                <i class="icon icon-heart"></i>
                            </a>
                        </span>
                        <span>
                            <a href="#productid1" class="mfp-open" data-title="Quick wiew">
                                <i class="icon icon-eye"></i>
                            </a>
                        </span>
                    </div>
                    <div class="btn btn-add">
                        <i class="icon icon-cart"></i>
                    </div>
                    <div class="figure-grid">
                        <span class="badge badge-warning">...</span>
                        <div class="image">
                            <a href="product.html">
                                <img src="IMAGE_PATH alt="" />
                            </a>
                        </div>
                        <div class="text">
                            <h2 class="title h4">
                                <a href="#">...</a>
                            </h2>
                            <sub>...</sub>
                            <sup>...</sup>
                            <span class="description clearfix">
                                ...
                            </span>
                        </div>
                    </div>
                </article>

            </div>

        </div> <!--/row-->
    </div>
</div>

Product list

Markup example of product list


<div class="products">
    <div class="container">
        <div class="row">

            <!--Product item-->

            <div class="col-12">
                <article>
                    <div class="info">
                        <span class="add-favorite">
                            <a href="javascript:void(0);" data-title="Add to favorites" data-title-added="Added to favorites list">
                                <i class="icon icon-heart"></i>
                            </a>
                        </span>
                        <span>
                            <a href="#productid1" class="mfp-open" data-title="Quick wiew">
                                <i class="icon icon-eye"></i>
                            </a>
                        </span>
                    </div>
                    <div class="btn btn-add">
                        <i class="icon icon-cart"></i>
                    </div>
                    <div class="figure-list">
                        <span class="badge badge-warning">...</span>
                        <div class="image">
                            <a href="#">
                                <img src="IMAGE_PATH alt="" />
                            </a>
                        </div>
                        <div class="text">
                            <h2 class="title h4">
                                <a href="#">...</a>
                            </h2>
                            <sub>...</sub>
                            <sup>...</sup>
                            <span class="description clearfix">
                                ...
                            </span>
                        </div>
                    </div>
                </article>
            </div>

        </div> <!--/row-->
    </div>
</div>

Blog grid

Markup example of blog grid

                
<div class="blog blog-category blog-animated pt-4 pt-lg-5">
    <div class="container">
        <div class="row">

            <!--Blog item-->

            <div class="col-sm-6">
                <article>
                    <a href="article.html">
                        <div class="image" style="background-image:url(IMAGE_PATH)">
                            <img src="IMAGE_PATH" alt="" />
                        </div>
                        <div class="entry entry-table">
                            <div class="date-wrapper">
                                <div class="date">
                                    <span>...</span>
                                    <strong>...</strong>
                                    <span>...</span>
                                </div>
                            </div>
                            <div class="title">
                                <h2 class="h5">...</h2>
                            </div>
                        </div>
                    </a>
                </article>
            </div>

        </div>
    </div><!--/container-->
</div>
                
            

Blog list

Markup example of blog list

            
<div class="blog blog-category blog-animated pt-4 pt-lg-5">
    <div class="container">
        <div class="clearfix">

            <!--Blog item-->

            <article class="article-table">
                <a href="article.html">
                    <div class="image" style="background-image:url(IMAGE_PATH)">
                        <img src="IMAGE_PATH" alt="" />
                    </div>
                    <div class="text">
                        <div class="title">
                            <p>...</p>
                            <h2 class="h5">...</h2>
                        </div>
                        <div class="text-intro">
                            <p>...</p>
                        </div>
                    </div>
                </a>
            </article>

        </div>
    </div><!--/container-->
</div>
            
            

Title demo

Markup example of slider

            

            
            

Initalize the plugin

            

            
            

Credits

Images

jQuery

CSS