Cosmo

Model Agency HTML5 Template

Get Item Support
Thank you for purchasing the item!

If you have any questions that are beyond the scope of this help file, please feel free to email us to netgon@netgon.ru or via our user page contact form on our Themeforest profile page. Our response time can take to 1 business day.

We appreciate your choice of our product and hope it will help you in building amazing and creative web-sites. Thank you again and let's get started!

What's included?

In the zip package you download you will find 3 folders: HTML, PSD and DOCUMENTATION.

HTML

This is the folder that concerns you. It contains the main html and css files. Make the customizations you need and upload this folder files to you server.

PSD

Here you will find the original design files for the template.

DOCUMENTATION

Information and setup guide on the template. You are reading this file now.

What's not included?

Images you may have seen in the live preview are not included in the final item purchase.

Features

  1. Bootstrap 1170px grid based
  2. Retina-ready vector graphics
  3. Google Fonts used
  4. Fully responsive
  5. Simple clean design
  6. Detailed UI & nice typography
  7. PSD Design included (save $10)
  8. 3 home pages included
  9. 2 Projects masonry layouts
  10. Image gallery
  11. Blog pages
  12. Youtube video background
  13. Interactive special effects
  14. Parallax background effect
  15. Valid and easy-to-customize code
  16. BEM used for CSS code
  17. Smooth performance
  18. Working ajax contact form

General Markup

The general template structure is the same throughout the template. Here is the general structure.

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>Cosmo — Model agency HTML5 Template</title>
    <!-- CSS Links-->
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="css/magnific-popup.css">
    <link rel="stylesheet" href="css/font-awesome.min.css">
    <link rel="stylesheet" href="css/freepik.css">
    <link rel="stylesheet" href="css/owl.carousel.min.css">
    <!-- Custom CSS-->
    <link rel="stylesheet" href="style.css">
  </head>
  <body>
    <!-- PAGE PRELOADER -->
    <div class="page-preloader">
      <div class="page-preloader-wrapper">
        <div class="page-preloader-wrapper__round1"></div>
        <div class="page-preloader-wrapper__round2"></div>
      </div>
    </div>
    <!-- - PAGE PRELOADER -->
    <!-- PAGE HEADER [default] -->
    <header class="page-header page-header_default">
      ...
    </header>
    <!-- - PAGE HEADER [default] -->
    <!-- PAGE MAIN -->
    <main class="page-main">
      ...
    </main>
    <!-- - PAGE MAIN -->
    <!-- PAGE FOOTER [default] -->
    <footer class="page-footer page-footer_default">
      ...
    </footer>
    <!-- - PAGE FOOTER [default] -->
    <!-- JS Links-->
    <script src="js/modernizr.custom.js"></script>
    <script src="js/jquery.min.js"></script>
    <script src="js/imagesloaded.pkgd.min.js"></script>
    <script src="js/masonry.pkgd.min.js"></script>
    <script src="js/jarallax.min.js"></script>
    <script src="js/jquery.youtubebackground.js"></script>
    <script src="js/jquery.equalheights.min.js"></script>
    <script src="js/owl.carousel.min.js"></script>
    <script src="js/jquery.magnific-popup.min.js"></script>
    <script src="js/particles.min.js"></script>
    <!-- Custom JS-->
    <script src="js/common.js"></script>
  </body>
</html>

Plugins

The template contains some third-party plugins and styles. Here is the full listing.

CSS

Here's a list of all stylesheet files used with this template. You can find more information opening each file.

File Plugin Description
css/bootstrap.min.css Bootstrap Bootstrap framework main file (only grid system and some responsive utilities are used)
css/magnific-popup.css Magnific Popup Magnific Popup is a responsive lightbox & dialog script
css/font-awesome.min.css Font Awesome Pack of free vector icons
css/freepik.css Custom icons font pack Pack is made by Fontello - icon fonts generator Icons are provided by Freepik
css/owl.carousel.min.css Owl Carousel 2 Responsive carousel slider
style.css General template styles Contains template overall styles with table of contents. Make all necessary customizations and adjustments here.

JavaScript

Here's a list of all javascript files used with this template.

File Plugin Description
js/modernizr.custom.js Modernizr Modernizr tells you what HTML, CSS and JavaScript features the user’s browser has to offer.
js/jquery.min.js jQuery jQuery is a fast, small, and feature-rich JavaScript library.
js/imagesloaded.pkgd.min.js imagesLoaded Detects when all images have been loaded on the page.
js/masonry.pkgd.min.js Masonry Cascading grid layout library.
js/jarallax.min.js Jarallax Smooth parallax scrolling effect for background images using CSS transforms with graceful degradation for old browsers.
js/jquery.youtubebackground.js jQuery Youtube Background jQuery plugin that lets you create background videos using youtube api
js/jquery.equalheights.min.js jQuery Equal Heights Simple jQuery plugin to equalize heights of the multiple elements on a page.
js/owl.carousel.min.js Owl Carousel 2 Responsive carousel slider.
js/jquery.magnific-popup.min.js Magnific Popup Responsive lightbox & dialog script
js/particles.min.js Particles.js A lightweight JavaScript library for creating particles.
js/common.js General template script file Contains all scripts initializations, custom functions and event handlers. Make all necessary customizations and adjustments here.

Customization

Cosmo template is crafted with high customizability approach. In this section you will find some "how to's" to make your website more unique and stylish. There are most popular customization abilities are hightlited. If you need more assistance don't hesistate to contact our support.

Customizing canvas special effects

If you don’t like the existing pre-made configuration for special effects plugin, you can easily style it the way you like. This is really simple to tune Particles.js plugin without touching a single line of code!

You can customize almost everything in Particles.js plugin including color, style, direction, speed, interactivity and much more. Just go to Particles.js generator. Use this playground to fine tune every parameter of particles. After you’re done, click on "Download current config json". Now simply overwrite the existing configuration file in js/particlesjs-config.json with the new one.

If like to apply canvas particles drawing on the specific section, simply add id="particles-js" ID to the HTML element.

<section class="page-section page-section_intro _overlay-black _background-image1" id="particles-js">
  ...
</section>
Adding overlays to the sections

Adding overlay is a good design practice when you want to increase text readability or just to style a page section. There are 3 overlay types you can easiliy use throughout the template (see an example). Simply add one of the following classes to an HTML element:

  1. ._overlay-black - black overlay
  2. ._overlay-white - white overlay
  3. ._overlay-pattern - overlay with pattern (good for video background)

Please note, that your HTML element should be block or inline-block and should have position: relative; CSS property set on.

<section class="page-section page-section_intro _overlay-black _background-image1" id="particles-js">
  ...
</section>

All about parallax background effects

There are 2 types of parallax background effects predefined in Cosmo. If you wish some specific page section to be spiced with parallax effects, please make sure that:

  1. The section has valid background image CSS property background: url('/path/to/image.jpg');
  2. You have added .js-jarallax_type_1 or .js-jarallax_type_2 HTML classes to the section.
  3. js/common.js script file is working and functioning correclty.

If you need more control on your parallax effects, please refer to Jarallax plugin website.

<section class="page-section page-section-casting _background-image3 js-jarallax_type_1">
  ...
</section>

Setting up background video

index_3.html is an example on how you can place your own background video from Youtube. To set your own video as a background, simply follow these steps:

  1. Open js/common.js file with any text editor and jump to 108 line.
  2. Customize this parameter in the function: videoId: 'ul-K_c-RfHk'
  3. This code may be obtained from any Youtube video. Once some youtube video is opened look at the URL in your browser: https://www.youtube.com/watch?v=ul-K_c-RfHk

There are some other parameters available to customize. If you need more control on your video backgrounds, please refer to jQuery Youtube Background website.

// video background
$('#js-video-background').YTPlayer({
    fitToBackground: true,
    loop: true,
    videoId: 'ul-K_c-RfHk',
    quality: 'small',
    playerVars: {
        modestbranding: 0,
        autoplay: 1,
        controls: 0,
        showinfo: 0,
        branding: 0,
        rel: 0,
        autohide: 0,
        start: 35
    }
}); 

Setting up contact form

Cosmo comes with simple mail.php script which allows you to gather leads from your website. Open mail.php file with any text editor and change $recepient variable to your own e-mail address. Some other variables and text templates are also safe to customize.

Please note that you need PHP to be enabled on your hosting with mail() allowed function. To get more information, please contact your hosting provider.

<?php

$frm_name  = "Mailer"; //your name
$recepient = "admin@example.com"; //your e-mail
$sitename  = "Cosmo HTML Template"; //your site name
$subject   = "New contact from \"$sitename\""; //subject template

$name = trim($_POST["visitor_name"]);
$email = trim($_POST["visitor_email"]);
$msg = trim($_POST["visitor_msg"]);

$message = "
-------------------<br><br>
Visitor name: $name <br>
Visitor email: $email <br><br>
$msg
<br><br>-------------------
";

mail($recepient, $subject, $message, "From: $name <$recepient>" . "\r\n" . "Reply-To: $recepient" . "\r\n" . "X-Mailer: PHP/" . phpversion() . "\r\n" . "Content-type: text/html; charset=\"utf-8\"");
?>

Credits

The following images, assets, icons, scripts or other files are used in the template as listed bellow.

Once again, thank you so much for purchasing this item!

As we said at the beginning, we'd be glad to help you if you have any questions relating to this item. If you have a more general question relating to the themes on ThemeForest, you might consider visiting the forums and asking your question in the "Item Discussion" section.

If you like our product, please consider to rate the item on our Themeforest portfolio page. it won't take too much of your time but it will help us a lot to develop new amazing templates and themes.

Have a good day!