Last updated: June 09th, 2018

Installation

The template is made of using Bootstrap v4.1. You can always use other features of bootstrap what are not included in the templates. To learn more go to official bootstrap documentation

In addition We used the following js plugins in the template

Ddownload the main package from themeforest and unzip the file. You will find a directory called "html". Inside the "html" directory you will find several demo directory. Choose a demo for your project

Header

After you choose a demo you will find index file inside the demo directory. Open index.html file and look into the head. You need to change the href attributes of all links according to your asset directory structure

Head Example
<!doctype html>
<html lang="en">
<head>
    <link href="../assets/vendors/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css?family=Poppins:400,500,600,700" rel="stylesheet">
    <link href="../assets/vendors/owl/css/owl.carousel.min.css" rel="stylesheet">
    <link href="../assets/vendors/select2/select2.min.css" rel="stylesheet">
    <link href="../assets/vendors/perfect-scrollbar/css/perfect-scrollbar.css" rel="stylesheet">
    <link href="../assets/css/adonis.css" rel="stylesheet">
</head>
                                        

Footer

Change src attribute of scripts. And you are ready to start

<script src="../assets/vendors/perfect-scrollbar/js/perfect-scrollbar.min.js"></script>
    <script src="../assets/js/dropdown-menu.js"></script>
    <script src="../assets/js/player.js"></script>
    <script src="../assets/js/viewport.js"></script>
    <script src="../assets/vendors/masonry/masonry.pkgd.min.js"></script>
    <script src="../assets/vendors/history/jquery.history.js"></script>
    <script src="../assets/js/app.js"></script>
</body>
</html>

Layout

The template can be arranged into one, two and three columns. Different demos are designed in different columns. Fore example Demo one is one column, demo two is two column with right sidebar etc.

Sidebar/sidemenu are fixed width where content will take remaining space after sidebar/side menu. You can adjust sidebar/sidemenu from scss variables.

Gutters

The possible gutter sizes are gutter-4, gutter-10, gutter-20, gutter-30, gutter-40, gutter-50, gutter-60 and gutter-80. You can also use md, lg and xl to the gutters like gutter-lg-30. Multiple gutters class also works

html example

<div class="row gutter-4 gutter-lg-10">
    <div class="col-md-4">Content</div>
    <div class="col-md-4">Content</div>
    <div class="col-md-4">Content</div>
</div>

Components

JavaScript functions are designed inside an object called "adonisObj" instead of separate function. The object has unique prefix so each functions inside the object does not need to have unique prefix. It is easily changeable with much hassle.

Viewport Animation

You can animate html elements when they are visible by using viewport animate. It require a class and two data settings. See below example

Html

<div class="viewport-animate" data-animation-item=".item" data-animation="zoomIn">
    <div class="item">Content</div>
    <div class="item">Content</div>
    <div class="item">Content</div>
</div>

Data Settings Description
data-animation-item (required) Items selector
data-animation (required) Choose from zoomIn, slideUp, slideRight, slideRightSkew, slideLeftSkew, slideLeftSkew, randomBounch, bounchIn, fadeInSkew, elasticUp and cardDealer
data-offset (optional) It specify at which position section should be triggered. If value is set to 100% the elements will be triggered as soon as they are visible in the page, if value is set to 50%, it will be triggered when the elements hit the half height the window.

JavaScript (optional)

You can also initiate the viewport animation by custom class. Html components can be animated on viewport using "adonisObj.viewportAnimate" function.

Note: Data settings are still required

Parameters Description
Selector (required) jQuery selector. eg. $('.viewport-animate')
<script>
    jQuery(document).ready(function(){
        adonisObj.viewportAnimate( $('.viewport-animate'));
    });
</script>

Auto Columns

You can set different width colums for different screen from it's parent/row by using auto columns.

Note: "Auto columns" calculate parent's width instead of screen size. For example you can use this inside a sidebar or half row of your content. It calculate parent's width and set column size accordingly

Example html

<div class="row auto-columns" data-auto-columns-items=".col-auto" data-responsive-width="0:80%|400:260px">
    <div class="col-auto"></item>
    <div class="col-auto"></item>
    <div class="col-auto"></item>
</div> 
Data Settings Description
data-responsive-width (required) Set column size for different screens sizes. For example data-responsive-width="0:80%|400:350px" means thi setting has two arguments.

1. First argument is 0:80%. Value before colon ":" refer to parent size and value after ":" refer column size. It means when parent width is over 0 pixel and smaller than next parent size (which is 400 pixels in this case) columns size will be 80% of parents's width.

2. Second argument is 400:350px. It means when parent's size is over 400 pixels, columns size will be 350 pixels. You can add as many sizes as you want seperated by "|" (pipe/vertical bar). You can use "%" or "px" at any size
data-auto-columns-items (optional) If the option is set, it will take the selector otherwise column size will be applied on children elements

Auto fit Columns

Auto fit columns give you ability to set column size with minimal settings for all screen size. You just need to provide your expected column size and maximum size for column. This function will calculate parent's width and give columns size. The function will always make make columns equal and perfectly fit inside row

Example html

<div class="row auto-fit-columns" data-width="260" data-max-width="300">
    <div class="col-auto"></item>
    <div class="col-auto"></item>
    <div class="col-auto"></item>
</div> 

Data Settings Description
data-width (required) Provide your expected width for the column
data-max-width (optional) Provide maximum width for the columns
data-auto-fit-items (optional) By using this option you can specify any selector inside the parent element which may not be it's immediate children element. You just have to select jQuery selector for the elements
data-auto-fit-item-parent (optional) By using this option you can specify a parent div to calculate width instead of the main element

Auto Columns Row

"Auto columns row" is pretty similar to "Auto fit columns". Only one change is it give column class on the parent div instead of each child elements.

Example html

<div class="row auto-cols-row" data-width="260" data-max-width="300">
    <div class="col-auto"></item>
    <div class="col-auto"></item>
    <div class="col-auto"></item>
</div> 

Data Settings Description
data-width (required) Provide your expected width for the column
data-max-width (optional) Provide maximum width for the columns