Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Skrollr
#1
Brick 
Skrollr theme
Just another GetSimple website
An experimental horizontal one-page theme.
[Image: 0e64aa427562379.jpg]

Live demo | Download

This is a variant of the single-page approach. The content is divided into separate horizontal slides (looks like a 'classic' site) and pages switch with animated transitions.

First slide is not a page, actually, it's the landing slide (can be easily changed by switching to template-flat.php for your index page).

Local links are rebuilt by /js/init.js script automatically (href removed, links binded to slides). External links and image links remain untouched.
Also, the script allows you to build your own controls. The API is quite simple - add one of the 4 classes to an element and it becomes a control:
Code:
.slider-next //advance to next slide

.slider-prev //go to previous slide

.slider-jump //jump to a page of a given slug
//specify 'data-jump' attribute with the page slug

.slider-goto //jump to a slide/page with of a given index
//specify 'data-goto' attribute with the page index (note that actual pages start from 1)
The script also initializes the slider plugin (bxSlider is used), controls the mobile-menu etc.

A simple 12-unit CSS grid is included. Use .row as container and .uN class for columns (where N is 12th of container width - like u3, u4 etc).

Customizing is made easier (I hope) by separating CSS into two files: layout.css for pure structure and /css/skin.css for colours, fonts, margins and other styles.

v0.6 - Options for initialization script can be passed to the following call in template.php:

Code:
$(document).ready(function () {
   $('#pages').skrollr();
});

zeroSlide Boolean Turns on the landing screen. Default value: true

speed IntegerTransition time when switching slides, in milliseconds. Default value: 1000

easing String Name of the CSS easing function (for slide transitions). Possible values are: 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out'. Default value: "ease"

menu String Element, which contains menu items. (A CSS Selector) Use this parameter when you modify template structure. Default value: "#nav ul"

mobileMenu String Element, which contains mobile menu trigger ('hamburger' icon for example). (A CSS Selector). Use this parameter when you modify template structure. Default value: "#mobile-menu"




Comments, bug tracking, suggestions will be really appreciated.
Reply


Messages In This Thread
Skrollr - by vallhund - 2014-12-21, 10:47:09
RE: Skrollr - by Timbow - 2014-12-22, 20:52:06
RE: Skrollr - by shawn_a - 2014-12-23, 00:08:23
RE: Skrollr - by vallhund - 2014-12-23, 05:21:52
RE: Skrollr - by -FrA- - 2015-01-14, 02:56:56
RE: Skrollr - by vallhund - 2015-01-15, 06:33:26
RE: Skrollr - by shawn_a - 2015-01-15, 07:35:09
RE: Skrollr - by -FrA- - 2015-01-15, 19:09:34
RE: Skrollr - by Nokes - 2015-01-18, 23:18:50
RE: Skrollr - by pepe - 2015-03-07, 08:46:53
RE: Skrollr - by pepe - 2015-03-08, 02:51:37
RE: Skrollr - by vallhund - 2015-03-15, 21:46:48
RE: Skrollr - by pepe - 2015-03-16, 18:45:11
RE: Skrollr - by vallhund - 2015-03-12, 02:15:43
RE: Skrollr - by Lechuga - 2015-04-08, 06:43:51
RE: Skrollr - by davetest - 2015-05-03, 14:48:47
RE: Skrollr - by Carlos - 2015-05-03, 19:23:45
RE: Skrollr - by davetest - 2015-05-11, 04:41:44
RE: Skrollr - by Faramir - 2015-07-24, 08:49:48
RE: Skrollr - by vallhund - 2015-07-24, 21:28:35
RE: Skrollr - by Faramir - 2015-07-25, 00:16:31
RE: Skrollr - by vallhund - 2015-08-10, 03:51:15
RE: Skrollr - by Byteler - 2015-08-22, 21:01:06
RE: Skrollr - by vallhund - 2015-08-23, 03:47:24
RE: Skrollr - by Byteler - 2015-08-23, 04:31:25
RE: Skrollr - by vallhund - 2015-08-23, 05:29:17
RE: Skrollr - by Gederp - 2015-09-26, 16:39:01
RE: Skrollr - by Frens - 2015-09-27, 00:15:14
RE: Skrollr - by Gederp - 2015-09-28, 17:43:59



Users browsing this thread: 2 Guest(s)