Ethereal by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
This is Ethereal, my latest, greatest, and quite possibly most unique template for HTML5 UP.
Since releasing Parallelism 3-4 years ago (!!!), I've been dying to do another side-scrolling
template with more in the way of flexibility/customization potential. The result is this template,
Ethereal, which combines a robust side-scrolling framework of my own creation (with various
"scroll-assist" features like drag/momentum scrolling, keyboard shortcuts, etc.) with a unique
look and feel, a lightbox gallery, tons of customization options, and, of course, full
responsiveness. Hope you dig it :)
Demo images* courtesy of Unsplash, a radtastic collection of CC0 (public domain) images
you can use for pretty much whatever.
(* = not included)
AJ
aj@lkn.io | @ajlkn
Instructions:
Overview
========
Browsers deal with side-scrolling pages differently to vertically-oriented ones in
that they require elements (or at the very least, the top-most wrapper element) to
have a defined (fixed) width. This leads to a number of limitations (eg. the page
won't automatically grow/shrink in the same way a vertically-oriented one will), so
Ethereal does two things to work around this:
- The entire page is made up of "panel" elements, each of which can be assigned an
optional "size" modifier (satisfying the fixed width requirement).
- For panels that don't use a size modifier, individual containing elements *inside*
them (eg. a column) can be assigned a "span" modifier to give those a fixed width
instead (also satisfying the fixed width requirement).
Another fun quirk of side-scrolling pages is how to actually implement horizontal
scrolling *without* resorting to using the (usually ugly) horizontal scrollbar.
Ethereal does this in FOUR (!) ways:
- Dragging: Users can simply click and drag the page left or right to scroll it around.
This works exactly as you'd expect, and even has a nice "post-scroll momentum" effect.
- Scroll Wheel: Ethereal modifies* the scroll wheel's behavior to translate vertical
scrolling into horizontal scrolling, allowing the user to use either the scroll wheel
or trackpad to scroll the page (the latter of which retains the ability to horziontally
scroll as normal, so nothing changes there).
* Special thanks to @miorel + @pieterv of Facebook for "normalizeWheel()" :)
- Scroll Zones: Users can hover the mouse cursor on the left or right edges of the page
to automatically scroll in either direction.
- Keyboard Shortcuts: Finally, users can simply use the left/right arrows, page up/down,
home/end, and the spacebar to scroll the page.
Note that any (or all) of these scroll-assist features can be turned off (and in some
cases customized). See the top of assets/js/main.js for more information.
Span Modifiers
==============
Span modifiers are simply classes that give elements a fixed width, the size of which
is determined by the "unit value" associated with the modifier (eg. "span-3" means
"span 3 units"). These sizes are in "rem" units when used inside panels that don't
use a size modifier, and in percentage units when used inside panels that do.
Ethereal includes span modifiers ranging from 0.25 units ("span-0-25") to 10 units
("span-10"). Here's a partial list:
span-0-25 Span 0.25 units.
span-0-5 Span 0.5 units.
span-0-75 Span 0.75 units.
span-1 Span 1 unit.
span-1-25 Span 1.25 units.
span-1-5 Span 1.5 units.
span-1-75 Span 1.75 units.
...
span-9 Span 9 units.
span-9-25 Span 9.25 units.
span-9-5 Span 9.5 units.
span-9-75 Span 9.75 units.
span-10 Span 10 units.
Major Elements
==============
Most of Ethereal's elements are pretty much what you'd expect, but there are a handful
of "major" ones that warrant a bit more explanation:
Panel
------
The primary building block of Ethereal.
HTML
<section class="panel (size modifier) (color modifier)">
<div class="intro (color modifier)">
(intro content)
</div>
<div class="inner (inner modifiers) (color modifier)">
(inner content)
</div>
</section>
Note: The entire "intro" child element can be excluded.
Note: You can have as many "intro" and "inner" child elements as you like.
Modifiers
Size
small Use small size.
medium Use medium size.
large Use large size.
Color
color0 Use background color 0 (gradient).
color1 Use background color 1.
color2 Use background color 2.
color3 Use background color 3.
color4 Use background color 4.
color1-alt Use background color 1 (alt).
color2-alt Use background color 2 (alt).
color3-alt Use background color 3 (alt).
color4-alt Use background color 4 (alt).
Inner
columns Divides child elements into columns.
aligned When used with "columns", aligns content to top of panel.
divided When used with "columns", separates each column with a vertical line.
Examples
Here's a very basic example:
<section class="panel medium color0">
<div class="intro">
<h2 class="major">Panel</h2>
<p>Just a generic panel.</p>
</div>
<div class="inner">
<p>Lorem ipsum dolor sit amet.</p>
</div>
</section>
And here's a more advanced example using columns and *no* size modifier:
<section class="panel color2">
<div class="intro">
<h2 class="major">Panel</h2>
<p>Just a generic panel.</p>
</div>
<div class="inner columns">
<div class="span-4">
<p>This column is 4 units wide.</p>
</div>
<div class="span-3">
<p>This column is 3 units wide.</p>
</div>
<div class="span-2">
<p>This column is 2 units wide.</p>
</div>
</div>
</section>
Note: The "intro" child element already has a fixed width, so a span modifier
isn't required.
Panel (Banner)
--------------
The "Banner" variant of a regular panel.
HTML
<section class="panel banner (size modifier) (color modifier) (orientation modifier)">
<div class="content (color modifier)">
(content)
</div>
<div class="image (image modifiers)" data-position="(image position modifier)">
<img src="(image URL)" alt="" />
</div>
</section>
Modifiers
Orientation
left Content on the left, image on the right.
right Content on the right, image on the left.
Image
filtered Applies a gradient filter to the image.
tinted Applies a tint filter to the image.
Image Position (required)
top left Position image in the top-left corner.
top Position image along the top edge.
top right Position image in the top-right corner.
right Position image along the right edge.
bottom right Position image in the bottom-right corner.
bottom Position image along the bottom edge.
bottom left Position image in the bottom-left corner.
left Position image along the left edge.
center Position image in the center.
Example
<section class="panel banner medium right">
<div class="content color0">
<h1>Banner</h1>
<p>Lorem ipsum dolor sit amet.</p>
</div>
<div class="image" data-position="center">
<img src="/path/to/image.jpg" alt="" />
</div>
</section>
Panel (Spotlight)
-----------------
The "Spotlight" variant of a regular panel.
HTML
<section class="panel spotlight (size modifier) (orientation modifier)">
<div class="content (span modifier)">
(content)
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
html5up 学习项目 html+css学习.zip (1632个子文件)
main.css 182KB
main.css 79KB
main.css 77KB
main.css 73KB
main.css 72KB
main.css 71KB
main.css 70KB
main.css 69KB
main.css 69KB
main.css 68KB
main.css 67KB
main.css 63KB
main.css 63KB
main.css 59KB
main.css 58KB
main.css 56KB
main.min.css 54KB
main.css 50KB
main.css 42KB
main.css 42KB
main.css 41KB
main.css 41KB
main.css 41KB
main.css 40KB
main.css 40KB
main.css 40KB
main.min.css 33KB
main.min.css 32KB
main.css 32KB
main.css 32KB
main.min.css 30KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.css 28KB
font-awesome.min.min.css 28KB
font-awesome.min.min.css 28KB
font-awesome.min.min.css 28KB
font-awesome.min.min.css 28KB
font-awesome.min.min.css 28KB
font-awesome.min.min.css 28KB
font-awesome.min.min.css 28KB
font-awesome.min.min.css 28KB
font-awesome.min.min.css 28KB
font-awesome.min.min.css 28KB
font-awesome.min.min.css 28KB
font-awesome.min.min.css 28KB
font-awesome.min.min.css 28KB
main.min.css 25KB
main.min.css 25KB
main.css 24KB
main.css 24KB
main.css 24KB
main.css 21KB
main.css 21KB
main.css 21KB
main.min.css 19KB
main.css 17KB
main.css 17KB
main.min.css 17KB
main.min.css 17KB
main.min.css 17KB
main.css 16KB
main.min.css 13KB
main.min.css 13KB
ie8.css 8KB
ie8.css 3KB
ie8.css 3KB
ie8.css 2KB
fontset.css 2KB
共 1632 条
- 1
- 2
- 3
- 4
- 5
- 6
- 17
资源评论
葡萄籽儿
- 粉丝: 485
- 资源: 662
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- (源码)基于C++的ARMA53贪吃蛇游戏系统.zip
- (源码)基于Python和MQTT协议的IoT数据获取与处理系统.zip
- (源码)基于Arduino编程语言的智能硬件控制系统.zip
- (源码)基于Android的记账管理系统.zip
- (源码)基于Spring Boot框架的二手车管理系统.zip
- (源码)基于Spring Boot和Vue的分布式权限管理系统.zip
- (源码)基于Spring Boot框架的后台管理系统.zip
- (源码)基于Spring Boot和Vue的高性能售票系统.zip
- (源码)基于Windows API的USB设备通信系统.zip
- (源码)基于Spring Boot框架的进销存管理系统.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功