├── .gitignore
├── slides
├── 09_no
│ ├── no.sass
│ └── no.slim
├── 04_why
│ ├── why.slim
│ ├── why.jpg
│ └── why.sass
├── 11_how
│ ├── how.slim
│ ├── how.jpg
│ └── how.sass
├── 12_js
│ ├── js.slim
│ ├── js.jpg
│ └── js.sass
├── 13_stop
│ ├── stop.sass
│ └── stop.slim
├── 19_css
│ ├── css.slim
│ ├── css.jpg
│ └── css.sass
├── 29_after
│ ├── after.sass
│ └── after.slim
├── 15_nomvc
│ ├── nomvc.sass
│ └── nomvc.slim
├── 22_better
│ ├── better.sass
│ └── better.slim
├── 02_history
│ └── history.slim
├── 03_mass
│ ├── mass.slim
│ ├── mass.jpg
│ └── mass.sass
├── 05_fear
│ ├── popup.png
│ ├── site.jpg
│ ├── fear.slim
│ ├── fear.coffee
│ └── fear.sass
├── 23_more
│ ├── robot.png
│ ├── more.coffee
│ ├── more.slim
│ └── more.sass
├── 01_title
│ ├── title.jpg
│ ├── evilmartians.png
│ ├── title.slim
│ └── title.sass
├── 07_emotions
│ ├── back.png
│ ├── front.png
│ ├── emotions.slim
│ ├── emotions.coffee
│ └── emotions.sass
├── 30_support
│ ├── msie.png
│ ├── opera.png
│ ├── chrome.png
│ ├── mozilla.png
│ ├── support.slim
│ └── support.sass
├── 35_questions
│ ├── questions.jpg
│ ├── evilmartians.png
│ ├── questions.slim
│ └── questions.sass
├── 32_easingsnet
│ ├── screenshot.png
│ ├── easingsnet.slim
│ └── easingsnet.sass
├── 34_sass
│ ├── sass.sass
│ └── sass.slim
├── 33_easinghow
│ ├── easingnow.sass
│ └── easingnow.slim
├── 31_easing
│ ├── easing.coffee
│ ├── easing.slim
│ └── easing.sass
├── 27_compare
│ ├── compare.sass
│ └── compare.slim
├── 18_advantages
│ ├── advantages.slim
│ └── advantages.sass
├── 20_transitions
│ ├── transitions.coffee
│ ├── transitions.slim
│ └── transitions.sass
├── 24_animations
│ ├── animations.coffee
│ ├── animations.slim
│ └── animations.sass
├── 06_channel
│ ├── channel.coffee
│ ├── channel.slim
│ └── channel.sass
├── 14_properties
│ └── properties.slim
├── 16_difficult
│ ├── difficult.sass
│ └── difficult.slim
├── 21_triggers
│ └── triggers.slim
├── 25_fill
│ ├── fill.slim
│ └── fill.sass
├── 26_infinite
│ ├── infinite.slim
│ ├── infinite.sass
│ └── ouroboros.svg
├── 28_control
│ └── control.slim
├── 10_team
│ ├── team.slim
│ └── team.sass
├── 08_time
│ ├── time.slim
│ └── time.sass
└── 17_performance
│ ├── performance.slim
│ └── performance.sass
├── common
├── cursor.png
├── _standalone.sass
├── fonts.sass
├── _counter.html
├── style.sass
├── _base.sass
├── layout.slim
└── action.coffee
├── vendor
├── PTMono.woff
├── PTSans.woff
├── shower
│ ├── linen.png
│ ├── defaults.scss
│ ├── reset.scss
│ ├── screen.scss
│ └── script.js
└── PTSans.Narrow.Bold.woff
├── README.md
├── Gemfile
├── Gemfile.lock
├── Rakefile
└── LICENSE
/.gitignore:
--------------------------------------------------------------------------------
1 | .bundle/
2 | .sass-cache
3 | public/
4 |
--------------------------------------------------------------------------------
/slides/09_no/no.sass:
--------------------------------------------------------------------------------
1 | .no-slide.slide
2 | ul
3 | margin-top: 120px
4 |
--------------------------------------------------------------------------------
/common/cursor.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ai/anim2012/master/common/cursor.png
--------------------------------------------------------------------------------
/slides/04_why/why.slim:
--------------------------------------------------------------------------------
1 | - title 'Зачем нужна анимация'
2 | - cover 'why.jpg'
3 |
--------------------------------------------------------------------------------
/slides/11_how/how.slim:
--------------------------------------------------------------------------------
1 | - title 'Как задавать анимацию'
2 | - cover 'how.jpg'
3 |
--------------------------------------------------------------------------------
/slides/12_js/js.slim:
--------------------------------------------------------------------------------
1 | - title 'Что не так с JavaScript'
2 | - cover 'js.jpg'
3 |
--------------------------------------------------------------------------------
/slides/13_stop/stop.sass:
--------------------------------------------------------------------------------
1 | .stop-slide.slide
2 | pre
3 | padding-top: 40px
4 |
--------------------------------------------------------------------------------
/slides/19_css/css.slim:
--------------------------------------------------------------------------------
1 | - title 'Анимации прямо в CSS'
2 | - cover 'css.jpg'
3 |
--------------------------------------------------------------------------------
/slides/29_after/after.sass:
--------------------------------------------------------------------------------
1 | .after-slide.slide
2 | a
3 | font-size: 40px
4 |
--------------------------------------------------------------------------------
/slides/12_js/js.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ai/anim2012/master/slides/12_js/js.jpg
--------------------------------------------------------------------------------
/slides/15_nomvc/nomvc.sass:
--------------------------------------------------------------------------------
1 | .nomvc-slide.slide
2 | .js
3 | padding-top: 90px
4 |
--------------------------------------------------------------------------------
/slides/22_better/better.sass:
--------------------------------------------------------------------------------
1 | .better-slide.slide
2 | ul
3 | padding-top: 75px
4 |
--------------------------------------------------------------------------------
/vendor/PTMono.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ai/anim2012/master/vendor/PTMono.woff
--------------------------------------------------------------------------------
/vendor/PTSans.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ai/anim2012/master/vendor/PTSans.woff
--------------------------------------------------------------------------------
/slides/02_history/history.slim:
--------------------------------------------------------------------------------
1 | - title '$.fn.animate() — 2006 год'
2 | - type 'shout'
3 |
--------------------------------------------------------------------------------
/slides/03_mass/mass.slim:
--------------------------------------------------------------------------------
1 | - title 'Теперь массовое производство'
2 | - cover 'mass.jpg'
3 |
--------------------------------------------------------------------------------
/slides/04_why/why.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ai/anim2012/master/slides/04_why/why.jpg
--------------------------------------------------------------------------------
/slides/11_how/how.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ai/anim2012/master/slides/11_how/how.jpg
--------------------------------------------------------------------------------
/slides/19_css/css.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ai/anim2012/master/slides/19_css/css.jpg
--------------------------------------------------------------------------------
/slides/03_mass/mass.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ai/anim2012/master/slides/03_mass/mass.jpg
--------------------------------------------------------------------------------
/slides/05_fear/popup.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ai/anim2012/master/slides/05_fear/popup.png
--------------------------------------------------------------------------------
/slides/05_fear/site.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ai/anim2012/master/slides/05_fear/site.jpg
--------------------------------------------------------------------------------
/slides/12_js/js.sass:
--------------------------------------------------------------------------------
1 | .js-slide.slide
2 | h2
3 | color: black
4 | +stroke-text(white)
5 |
--------------------------------------------------------------------------------
/slides/23_more/robot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ai/anim2012/master/slides/23_more/robot.png
--------------------------------------------------------------------------------
/vendor/shower/linen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ai/anim2012/master/vendor/shower/linen.png
--------------------------------------------------------------------------------
/slides/01_title/title.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ai/anim2012/master/slides/01_title/title.jpg
--------------------------------------------------------------------------------
/slides/04_why/why.sass:
--------------------------------------------------------------------------------
1 | .slide.why-slide
2 | h2
3 | color: white
4 | +stroke-text(black)
5 |
--------------------------------------------------------------------------------
/slides/07_emotions/back.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ai/anim2012/master/slides/07_emotions/back.png
--------------------------------------------------------------------------------
/slides/30_support/msie.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ai/anim2012/master/slides/30_support/msie.png
--------------------------------------------------------------------------------
/slides/30_support/opera.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ai/anim2012/master/slides/30_support/opera.png
--------------------------------------------------------------------------------
/slides/03_mass/mass.sass:
--------------------------------------------------------------------------------
1 | .slide.mass-slide
2 | h2
3 | color: white
4 | +stroke-text(black)
5 |
--------------------------------------------------------------------------------
/slides/07_emotions/front.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ai/anim2012/master/slides/07_emotions/front.png
--------------------------------------------------------------------------------
/slides/30_support/chrome.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ai/anim2012/master/slides/30_support/chrome.png
--------------------------------------------------------------------------------
/slides/30_support/mozilla.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ai/anim2012/master/slides/30_support/mozilla.png
--------------------------------------------------------------------------------
/slides/01_title/evilmartians.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ai/anim2012/master/slides/01_title/evilmartians.png
--------------------------------------------------------------------------------
/vendor/PTSans.Narrow.Bold.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ai/anim2012/master/vendor/PTSans.Narrow.Bold.woff
--------------------------------------------------------------------------------
/slides/35_questions/questions.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ai/anim2012/master/slides/35_questions/questions.jpg
--------------------------------------------------------------------------------
/slides/32_easingsnet/screenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ai/anim2012/master/slides/32_easingsnet/screenshot.png
--------------------------------------------------------------------------------
/slides/35_questions/evilmartians.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ai/anim2012/master/slides/35_questions/evilmartians.png
--------------------------------------------------------------------------------
/slides/34_sass/sass.sass:
--------------------------------------------------------------------------------
1 | .sass-slide.slide
2 | pre
3 | margin: 0 0 0 50px
4 | code::before
5 | display: none
6 |
--------------------------------------------------------------------------------
/slides/23_more/more.coffee:
--------------------------------------------------------------------------------
1 | presentation.slide 'more', ($, $$, slide) ->
2 |
3 | slide.every 4500, -> slide.toggleClass('rotated')
4 |
--------------------------------------------------------------------------------
/slides/32_easingsnet/easingsnet.slim:
--------------------------------------------------------------------------------
1 | - title 'Выбираем: easings.net'
2 | - cover 'screenshot.png'
3 |
--------------------------------------------------------------------------------
/slides/33_easinghow/easingnow.sass:
--------------------------------------------------------------------------------
1 | .easingnow-slide.slide
2 | pre.first
3 | padding-top: 90px
4 | code
5 | font-size: 18px
6 |
--------------------------------------------------------------------------------
/slides/09_no/no.slim:
--------------------------------------------------------------------------------
1 | - title 'Когда анимация не нужна'
2 |
3 | ul
4 | li Стили при щелчке/касании
5 | li Профессиональные интерфейсы
6 |
--------------------------------------------------------------------------------
/slides/31_easing/easing.coffee:
--------------------------------------------------------------------------------
1 | presentation.slide 'easing', ($, $$, slide) ->
2 |
3 | slide.every 3000, -> slide.toggleClass('moved')
4 |
--------------------------------------------------------------------------------
/slides/32_easingsnet/easingsnet.sass:
--------------------------------------------------------------------------------
1 | .easingsnet-slide.slide
2 | h2
3 | position: relative
4 | top: -25px
5 | left: -40px
6 |
--------------------------------------------------------------------------------
/slides/11_how/how.sass:
--------------------------------------------------------------------------------
1 | .how-slide.slide
2 | h2
3 | color: black
4 | +stroke-text(white)
5 | position: relative
6 | top: 135px
7 |
--------------------------------------------------------------------------------
/slides/19_css/css.sass:
--------------------------------------------------------------------------------
1 | .css-slide.slide
2 | h2
3 | color: black
4 | +stroke-text(white)
5 | position: relative
6 | top: -40px
7 |
--------------------------------------------------------------------------------
/slides/05_fear/fear.slim:
--------------------------------------------------------------------------------
1 | - title 'Не пугайте пользователя'
2 |
3 | .example
4 | .shadow
5 | .popup
6 | .example.animated
7 | .shadow
8 | .popup
9 |
--------------------------------------------------------------------------------
/slides/35_questions/questions.slim:
--------------------------------------------------------------------------------
1 | - title 'Вопросы'
2 | - cover 'questions.jpg'
3 |
4 | a.evilmartians( href="http://evilmartians.ru/" )
5 | .image
6 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ### Презентация «Анимации по-новому — лень, гордыня и нетерпимость».
2 |
3 | Посмотреть: [ai.github.com/anim2012](http://ai.github.com/anim2012/).
4 |
--------------------------------------------------------------------------------
/slides/27_compare/compare.sass:
--------------------------------------------------------------------------------
1 | .compare-slide.slide
2 | .side
3 | width: 392px
4 | float: left
5 | h3
6 | +narrow-font
7 | font-size: 36px
8 |
--------------------------------------------------------------------------------
/common/_standalone.sass:
--------------------------------------------------------------------------------
1 | @function font($path, $type)
2 | @return inline-font-files($path, $type)
3 |
4 | @function image($path)
5 | @return inline-image($path)
6 |
--------------------------------------------------------------------------------
/slides/15_nomvc/nomvc.slim:
--------------------------------------------------------------------------------
1 | - title 'JS: Перемешаны стили и код'
2 |
3 | pre.js
4 | code slider.animate({ left: -950 })
5 |
6 | pre
7 | code .page { width: 950px }
8 |
--------------------------------------------------------------------------------
/slides/18_advantages/advantages.slim:
--------------------------------------------------------------------------------
1 | - title 'Достоинства программиста'
2 |
3 | p Лень, нетерпимость и гордыня
4 |
5 | .proof-link — Ларри Уолл, глоссарий Programming Perl
6 |
--------------------------------------------------------------------------------
/slides/20_transitions/transitions.coffee:
--------------------------------------------------------------------------------
1 | presentation.slide 'transitions', ($, $$, slide) ->
2 |
3 | slide.every 2000, ->
4 | slide.toggleClass('cursored')
5 | after 200, -> slide.toggleClass('colored')
6 |
--------------------------------------------------------------------------------
/slides/24_animations/animations.coffee:
--------------------------------------------------------------------------------
1 | presentation.slide 'animations', ($, $$, slide) ->
2 |
3 | slide.every 5000, ->
4 | slide.toggleClass('cursored')
5 | after 200, -> slide.toggleClass('colored')
6 |
--------------------------------------------------------------------------------
/slides/05_fear/fear.coffee:
--------------------------------------------------------------------------------
1 | presentation.slide 'fear', ($, $$, slide) ->
2 |
3 | examples = $$('.example')
4 | slide.every 3000, -> examples.toggleClass('signin')
5 | slide.close -> examples.removeClass('signin')
6 |
--------------------------------------------------------------------------------
/slides/07_emotions/emotions.slim:
--------------------------------------------------------------------------------
1 | - title 'Передавайте эмоции'
2 | - type 'use3d'
3 |
4 | .example
5 | .card
6 | .front
7 | .back
8 | .example.animated
9 | .card
10 | .front
11 | .back
12 |
--------------------------------------------------------------------------------
/slides/06_channel/channel.coffee:
--------------------------------------------------------------------------------
1 | presentation.slide 'channel', ($, $$, slide) ->
2 |
3 | examples = $$('.example')
4 | slide.every 3000, -> examples.toggleClass('bad')
5 | slide.close -> examples.removeClass('bad')
6 |
--------------------------------------------------------------------------------
/slides/18_advantages/advantages.sass:
--------------------------------------------------------------------------------
1 | .advantages-slide.slide
2 | p
3 | text-align: center
4 | font-size: 60px
5 | padding-top: 90px
6 | color: #777
7 | +narrow-font
8 | b
9 | color: black
10 |
--------------------------------------------------------------------------------
/Gemfile:
--------------------------------------------------------------------------------
1 | source 'http://rubygems.org'
2 |
3 | gem 'rake'
4 | gem 'sinatra'
5 |
6 | gem 'slim'
7 | gem 'compass', '~> 0.13.alpha.0'
8 | gem 'ceaser-easing'
9 | gem 'coffee-script'
10 | gem 'therubyracer'
11 |
12 | gem 'uglifier'
13 |
--------------------------------------------------------------------------------
/slides/14_properties/properties.slim:
--------------------------------------------------------------------------------
1 | - title 'JS: Только цифровые CSS-свойства'
2 |
3 | p Не работают без расширений:
4 |
5 | ul
6 | li color
7 | li background-color
8 | li background-position
9 | li transform
10 | li box-shadow
11 |
--------------------------------------------------------------------------------
/slides/16_difficult/difficult.sass:
--------------------------------------------------------------------------------
1 | .difficult-slide.slide
2 | ul
3 | float: left
4 | width: 360px
5 | margin: 100px 0 0 -40px
6 | pre
7 | float: right
8 | width: 320px
9 | code
10 | font-size: 8px
11 | line-height: 12px
12 |
--------------------------------------------------------------------------------
/slides/06_channel/channel.slim:
--------------------------------------------------------------------------------
1 | - title 'Сообщайте больше'
2 |
3 | .example
4 | .email andrey@sitnik.ru
5 | .password ••••••
6 | .wrong Пароль неправильный
7 | .example.animated
8 | .email andrey@sitnik.ru
9 | .password ••••••
10 | .wrong Пароль неправильный
11 |
--------------------------------------------------------------------------------
/slides/33_easinghow/easingnow.slim:
--------------------------------------------------------------------------------
1 | - title 'Указываем смягчающую функцию'
2 |
3 | pre.first
4 | code transition-timing-function: cubic‑bezier(0.175, 0.885, 0.32, 1.275)
5 | pre
6 | code animation-timing-function: cubic‑bezier(0.175, 0.885, 0.32, 1.275)
7 |
--------------------------------------------------------------------------------
/slides/01_title/title.slim:
--------------------------------------------------------------------------------
1 | - title 'Анимация по-новому — лень, гордыня и нетерпимость'
2 | - cover 'title.jpg'
3 |
4 | .name
5 | a( href="http://github.com/ai" ) Андрей Ситник
6 | .company
7 | a( href="http://evilmartians.ru/" ) Злые марсиане
8 | .icon
9 |
10 | .mark 18+
11 |
--------------------------------------------------------------------------------
/slides/29_after/after.slim:
--------------------------------------------------------------------------------
1 | - title 'Расширение jQuery Transition Events'
2 |
3 | pre
4 | code signinPopup.removeClass('animated-show').
5 | code afterTransition(function () { signinPopup.hide() });
6 |
7 | a( href="https://github.com/ai/transition-events" ) github.com/ai/transition-events
8 |
--------------------------------------------------------------------------------
/slides/13_stop/stop.slim:
--------------------------------------------------------------------------------
1 | - title 'JS: Нужно думать об остановке анимации'
2 |
3 | pre
4 | code b.mouseenter(function () {
5 | code b.stop().animate({ left: 100 }, 500);
6 | code });
7 | code b.mouseleave(function () {
8 | code b.stop().animate({ left: 0 }, 500);
9 | code });
10 |
--------------------------------------------------------------------------------
/slides/31_easing/easing.slim:
--------------------------------------------------------------------------------
1 | - title 'Функция смягчения'
2 | - type 'use3d'
3 |
4 | .example
5 | .card
6 | .front
7 | .cursor
8 | .label
9 | code linear
10 | .example.better
11 | .card
12 | .front
13 | .cursor
14 | .label
15 | div
16 | code easeOutQuint
17 | div
18 | code easeOutBack
19 |
--------------------------------------------------------------------------------
/slides/20_transitions/transitions.slim:
--------------------------------------------------------------------------------
1 | - title 'CSS Transitions'
2 |
3 | pre
4 | code div {
5 | code background: blue;
6 | code transition: background 500ms
7 | code }
8 | code div:hover {
9 | code background: red
10 | code }
11 |
12 | .example
13 | .cursor
14 |
--------------------------------------------------------------------------------
/slides/21_triggers/triggers.slim:
--------------------------------------------------------------------------------
1 | - title 'CSS Transitions. Описание'
2 |
3 | p Анимирует изменения указанных полей при:
4 |
5 | ul
6 | li Появлении псевдокласса: div:hover
7 | li Смене класса из JS: div.addClass('rotated')
8 | li Смене CSS-свойства из JS: div.css({ left: 100 })
9 | li Смене стилей из-за медиа-выражений CSS.
10 |
--------------------------------------------------------------------------------
/slides/23_more/more.slim:
--------------------------------------------------------------------------------
1 | - title 'CSS Transitions. Хитрости'
2 | - type 'use3d'
3 |
4 | pre
5 | code div {
6 | code transition: transform 1s }
7 | code div:hover {
8 | code transition-property: left, transform, margin-left;
9 | code transition-delay: 0, 1s 2s }
10 |
11 | .example
12 | .image
13 | .cursor
14 |
--------------------------------------------------------------------------------
/slides/25_fill/fill.slim:
--------------------------------------------------------------------------------
1 | - title 'CSS Animations. Заполнение'
2 |
3 | .first
4 | code animation-fill-mode:
5 | ul
6 | li.backwards
7 | code backwards
8 | .example
9 | .start
10 | .end
11 | li.forwards
12 | code forwards
13 | .example
14 | .start
15 | .end
16 | li.both
17 | code both
18 | .example
19 | .start
20 | .end
21 |
--------------------------------------------------------------------------------
/slides/27_compare/compare.slim:
--------------------------------------------------------------------------------
1 | - title 'Когда что использовать'
2 |
3 | .side
4 | h3 CSS Transition
5 | ul
6 | li Стили при наведении
7 | li Всё, что получится
8 |
9 | .side
10 | h3 CSS Animation
11 | ul
12 | li Бесконечные крутилки
13 | li Анимации в несколько шагов
14 | li Мультфильмы с демонстрацией
15 | li Всё, что не получилось на CSS Transition
16 |
--------------------------------------------------------------------------------
/slides/07_emotions/emotions.coffee:
--------------------------------------------------------------------------------
1 | presentation.slide 'emotions', ($, $$, slide) ->
2 |
3 | examples = $$('.example')
4 | animated = examples.filter('.animated')
5 | back = animated.find('.back')
6 | slide.every 3000, ->
7 | examples.toggleClass('rotated')
8 | after 200, -> back.toggle()
9 | slide.close ->
10 | examples.removeClass('rotated')
11 | back.hide()
12 |
--------------------------------------------------------------------------------
/slides/26_infinite/infinite.slim:
--------------------------------------------------------------------------------
1 | - title 'CSS Animations. Повторения'
2 |
3 | pre
4 | code @keyframes {
5 | code 0% { transform: rotate(0) }
6 | code 100% { transform: rotate(360deg) }
7 | code }
8 | code .loader {
9 | code animation: rotation 2s linear;
10 | code animation-iteration-count: infinite; }
11 |
12 | .example
13 | = image_tag('ouroboros.svg')
14 |
--------------------------------------------------------------------------------
/slides/22_better/better.slim:
--------------------------------------------------------------------------------
1 | - title 'CSS Transitions. Преимущества'
2 |
3 | ul
4 | li
5 | strong Просто.
6 | | Одна строчка прямо в стилях.
7 | li
8 | strong Легко.
9 | | Можно добавлять анимацию на каждый ховер.
10 | li
11 | strong Быстро.
12 | | В 10 раз быстрее на телефоне.
13 | li
14 | strong Мощно.
15 | | Большинство свойств и остановливается посреди анимации.
16 |
--------------------------------------------------------------------------------
/slides/28_control/control.slim:
--------------------------------------------------------------------------------
1 | - title 'Управляйте CSS-анимациями из JavaScript'
2 |
3 | pre
4 | code $('a.signin').click(function () {
5 | code signinPopup.show().addClass('animated-show');
6 | code });
7 | code $('a.close-popup').click(function () {
8 | code signinPopup.removeClass('animated-show').
9 | code afterTransition(function () { signinPopup.hide() });
10 | code });
11 |
--------------------------------------------------------------------------------
/common/fonts.sass:
--------------------------------------------------------------------------------
1 | @font-face
2 | font-family: 'PT Sans'
3 | src: local('PT Sans'), local('PTSansRegular'), font("PTSans.woff", woff)
4 |
5 | @font-face
6 | font-family: 'PT Sans Narrow'
7 | font-weight: bold
8 | src: local('PT Sans Narrow Bold'), local('PTSansNarrowBold'), font("PTSans.Narrow.Bold.woff", woff)
9 |
10 | @font-face
11 | font-family: 'PT Mono'
12 | src: local('PT Mono'), local('PTMonoRegular'), font("PTMono.woff", woff)
13 |
--------------------------------------------------------------------------------
/slides/10_team/team.slim:
--------------------------------------------------------------------------------
1 | - title 'Команда'
2 |
3 | .team.good
4 | .cirle.designer
5 | | Дизайнер
6 | .cirle.frontend
7 | | Верстальщик
8 | .cirle.programmer
9 | | Программист
10 | .desc Хорошая анимация
11 |
12 | .team.bad
13 | .cirle.designer
14 | | Дизайнер
15 | .manager Менеджер
16 | .cirle.frontend
17 | | Верстальщик
18 | .manager Менеджер
19 | .cirle.programmer
20 | | Программист
21 | .desc Плохая анимация
22 |
--------------------------------------------------------------------------------
/slides/34_sass/sass.slim:
--------------------------------------------------------------------------------
1 | - title 'Sass'
2 |
3 | ul
4 | li
5 | strong Compass — префиксы:
6 | pre
7 | code +transition(all 1s)
8 | li
9 | strong Compass Ceaser — смягчающая функция:
10 | pre
11 | code +transition(all 1s ceaser('easeInBack'))
12 | li
13 | strong Блочные примеси:
14 | pre
15 | code +keyframes(animation-name)
16 | code 0%
17 | code …
18 |
19 |
--------------------------------------------------------------------------------
/slides/26_infinite/infinite.sass:
--------------------------------------------------------------------------------
1 | .infinite-slide.slide
2 | .example
3 | width: 200px
4 | height: 200px
5 | position: absolute
6 | top: 170px
7 | right: 125px
8 | img
9 | display: block
10 | width: 100%
11 | height: 100%
12 |
13 | .full .infinite-slide.slide.current
14 | .example
15 | +animation(infinite-rotation 2s linear infinite)
16 |
17 | +keyframes(infinite-rotation)
18 | 0%
19 | +rotate(0)
20 | 100%
21 | +rotate(360deg)
22 |
--------------------------------------------------------------------------------
/common/_counter.html:
--------------------------------------------------------------------------------
1 |
11 |
--------------------------------------------------------------------------------
/slides/08_time/time.slim:
--------------------------------------------------------------------------------
1 | - title 'Главное не переборщить'
2 |
3 | .limits
4 | .line
5 | .limit.l01
6 | .time 0,1 с
7 | .dash
8 | .limit.l1
9 | .time 1 с
10 | .dash
11 | .limit.l10
12 | .time 10 с
13 | .dash
14 |
15 | .desc.no Не анимация
16 | .desc.nice Не мешает
17 | .desc.warn Не должна блокировать
18 | .desc.mult Мультфильм
19 |
20 | .proof-link
21 | = '* '
22 | a href="http://www.useit.com/papers/responsetime.html"
23 | | Jakob Nielsen, Response Times: The 3 Important Limits
24 |
--------------------------------------------------------------------------------
/slides/35_questions/questions.sass:
--------------------------------------------------------------------------------
1 | .questions-slide.slide
2 | h2
3 | color: black
4 | +stroke-text(white)
5 | font-size: 62px
6 | .evilmartians
7 | display: block
8 | border: none
9 | position: absolute
10 | bottom: 50px - 3px
11 | right: 125px - 3px
12 | padding: 3px
13 | border-radius: 5px
14 | background: white(0)
15 | +transition(background 200ms)
16 | &:hover
17 | background: white(0.2)
18 | .image
19 | +background-image("slides/35_questions/evilmartians.png")
20 |
--------------------------------------------------------------------------------
/slides/20_transitions/transitions.sass:
--------------------------------------------------------------------------------
1 | .transitions-slide.slide
2 | code
3 | font-size: 23px
4 | .red
5 | color: #c30
6 | .blue
7 | color: #09c
8 | .example
9 | position: absolute
10 | top: 175px
11 | left: 700px
12 | width: 100px
13 | height: 100px
14 | background: #09c
15 | +transition(background 1s)
16 | &.colored .example
17 | background: #c30
18 | .cursor
19 | +background-image("common/cursor.png")
20 | position: absolute
21 | top: 285px
22 | left: 750px
23 | +transition(top 400ms linear)
24 | &.cursored .cursor
25 | top: 265px
26 |
--------------------------------------------------------------------------------
/slides/17_performance/performance.slim:
--------------------------------------------------------------------------------
1 | - title 'JS: Медленее'
2 |
3 | p Количество кадров в секунду:
4 |
5 | .graph
6 | .part.desktop
7 | .title Хром
8 | .value.js
9 | .line( style="width: 74%" )
10 | .count 74
11 | .label JS
12 | .value.css
13 | .line( style="width: 100%" )
14 | .count 100
15 | .label CSS
16 | .part.mobile
17 | .title Андроид
18 | .value.js
19 | .line( style="width: 1%" )
20 | .count 1
21 | .label JS
22 | .value.css
23 | .line( style="width: 15%" )
24 | .count 15
25 | .label CSS
26 |
27 | .proof-link
28 | = '* '
29 | a( href="http://greensock.com/js/speed.html" ) GreenSock Animation Speed Test
30 |
--------------------------------------------------------------------------------
/common/style.sass:
--------------------------------------------------------------------------------
1 | @import 'shower/screen'
2 |
3 | .slide
4 | background-image: none
5 | .list
6 | background-image: image("vendor/shower/linen.png")
7 |
8 | .full
9 | .slide
10 | &:after
11 | left: 80px
12 | bottom: 37px
13 | &.shout
14 | z-index: 0
15 | &:after
16 | content: counter(paging, decimal-leading-zero)
17 | h2
18 | margin-top: -40px
19 | font-size: 90px
20 |
21 | .slide ul > li
22 | list-style: none
23 |
24 | .proof-link
25 | font-size: 12px
26 | position: absolute
27 | right: 120px
28 | bottom: 100px
29 |
30 | .slide a
31 | border-bottom-color: rgba(#0174a7, 0.3)
32 | +transition(border 200ms)
33 | &:hover
34 | border-bottom-color: rgba(#0174a7, 1)
35 |
--------------------------------------------------------------------------------
/slides/05_fear/fear.sass:
--------------------------------------------------------------------------------
1 | .fear-slide.slide
2 | .example
3 | +background-image("slides/05_fear/site.jpg", 2)
4 | float: left
5 | position: relative
6 | overflow: hidden
7 | .shadow
8 | position: absolute
9 | top: 0
10 | left: 0
11 | width: 100%
12 | height: 100%
13 | background: black
14 | opacity: 0
15 | .popup
16 | position: absolute
17 | left: 60px
18 | +background-image("slides/05_fear/popup.png", 2)
19 | top: -170px
20 | &.signin
21 | .shadow
22 | opacity: 0.8
23 | .popup
24 | top: 80px
25 | &.animated
26 | float: right
27 | .shadow
28 | +transition(opacity 800ms)
29 | .popup
30 | +transition(top 800ms)
31 |
--------------------------------------------------------------------------------
/slides/08_time/time.sass:
--------------------------------------------------------------------------------
1 | .time-slide.slide
2 | .limits
3 | position: relative
4 | top: 20px
5 | .line
6 | position: absolute
7 | left: 100px
8 | top: 30px
9 | width: 20px
10 | height: 110%
11 | +background( linear-gradient(green, orange, red) )
12 | .limit
13 | margin-top: 50px
14 | font-size: 30px
15 | position: relative
16 | &:first-child
17 | margin-top: 0
18 | .time
19 | width: 70px
20 | text-align: right
21 | .dash
22 | position: absolute
23 | height: 1px
24 | width: 28px
25 | left: 96px
26 | top: 30px
27 | background: black
28 | .desc
29 | position: absolute
30 | left: 150px
31 | &.no
32 | top: -17px
33 | &.nice
34 | top: 58px
35 | &.warn
36 | top: 168px
37 | &.mult
38 | top: 265px
39 |
--------------------------------------------------------------------------------
/slides/30_support/support.slim:
--------------------------------------------------------------------------------
1 | - title 'Поддержка'
2 |
3 | .browsers
4 | .browser.chrome
5 | = image_tag 'chrome.png'
6 | .current
7 | .version 22:
8 | .status.prefixed -webkit-
9 | .beta
10 | .version 23:
11 | .status.prefixed -webkit-
12 | .browser.ff
13 | = image_tag 'mozilla.png'
14 | .current
15 | .version 15:
16 | .status.prefixed -moz-
17 | .beta
18 | .version 16:
19 | .status.ok ✔
20 | .browser.opera
21 | = image_tag 'opera.png'
22 | .current
23 | .version 12:
24 | .status.prefixed -o-
25 | .beta
26 | .version 12.1:
27 | .status.ok ✔
28 | .browser.msie
29 | = image_tag 'msie.png'
30 | .current
31 | .version 9:
32 | .status.no ✗
33 | .beta
34 | .version 10:
35 | .status.ok ✔
36 |
--------------------------------------------------------------------------------
/common/_base.sass:
--------------------------------------------------------------------------------
1 | @import 'compass/css3'
2 | @import 'ceaser-easing'
3 |
4 | @function black($opacity)
5 | @return rgba(0, 0, 0, $opacity)
6 |
7 | @function white($opacity)
8 | @return rgba(255, 255, 255, $opacity)
9 |
10 | @function font($path, $type)
11 | @return url("#{ font-url($path, $type) }")
12 |
13 | @function image($path)
14 | @return image-url($path)
15 |
16 | @mixin narrow-font
17 | font-family: 'PT Sans Narrow', sans-serif
18 | font-weight: bold
19 |
20 | @mixin standard-font
21 | font-family: 'PT Sans', sans-serif
22 |
23 | @mixin background-image($path, $scale: 1)
24 | width: image-width($path) / $scale
25 | height: image-height($path) / $scale
26 | background: image($path) no-repeat
27 | background-size: 100% 100%
28 |
29 | @mixin stroke-text($color)
30 | text-shadow: $color 1px 0 1px, $color 0 1px 1px, $color -1px 0 1px, $color 0 -1px 1px
31 |
--------------------------------------------------------------------------------
/slides/17_performance/performance.sass:
--------------------------------------------------------------------------------
1 | .performance-slide.slide
2 | .part
3 | margin-top: 40px
4 | position: relative
5 | margin-left: 155px
6 | .title
7 | position: absolute
8 | left: -155px
9 | top: 0
10 | line-height: 80px
11 | width: 100px
12 | text-align: right
13 | .value
14 | position: relative
15 | height: 50px
16 | .line
17 | height: 30px
18 | position: relative
19 | .count
20 | position: absolute
21 | top: 0
22 | left: 100%
23 | margin-left: 10px
24 | font-size: 16px
25 | line-height: 30px
26 | .label
27 | color: #666
28 | position: absolute
29 | top: 0
30 | left: -57px
31 | width: 50px
32 | text-align: right
33 | line-height: 30px
34 | font-size: 16px
35 | +narrow-font
36 | .js .line
37 | background: #f80
38 | .css .line
39 | background: #09c
40 |
--------------------------------------------------------------------------------
/slides/24_animations/animations.slim:
--------------------------------------------------------------------------------
1 | - title 'CSS Animations'
2 |
3 | pre
4 | code @keyframes backgrounding {
5 | code 0% { background: blue }
6 | code 100% { background: red }
7 | code }
8 | code div {
9 | code background: gray }
10 | code div:hover {
11 | code background: green;
12 | code animation: backgrounding 1s;
13 | code animation-delay: 0.5s;
14 | code animation-iteration-count: 3 }
15 |
16 | .timeline
17 | .div
18 | .animation
19 | .mark.hover наведение
20 | .mark.start начало анимации
21 | .mark.anim1 второй повтор
22 | .mark.anim2 третий повтор
23 | .mark.anim3 конец анимации
24 | .time.delay 0.5s
25 | .time.duration1 1s
26 | .time.duration2 1s
27 | .time.duration3 1s
28 |
29 | .example
30 | .cursor
31 |
--------------------------------------------------------------------------------
/slides/25_fill/fill.sass:
--------------------------------------------------------------------------------
1 | .fill-slide.slide
2 | .first
3 | margin-top: 80px
4 | ul
5 | margin-top: 20px
6 | li
7 | position: relative
8 | .example
9 | position: absolute
10 | top: 20px
11 | left: 200px
12 | width: 399px
13 | height: 10px
14 | background: gray
15 | .start, .end
16 | position: absolute
17 | top: -10px
18 | height: 30px
19 | width: 1px
20 | opacity: 0.7
21 | background: black
22 | .start
23 | left: 133px
24 | .end
25 | left: 266px
26 | .backwards .example
27 | +background( linear-gradient(left, #09c, #09c 133px, #c30 266px, gray 266px, gray) )
28 | .forwards .example
29 | +background( linear-gradient(left, gray, gray 133px, #09c 133px, #c30 266px, #c30) )
30 | .both .example
31 | +background( linear-gradient(left, #09c, #09c 133px, #c30 266px, #c30) )
32 | li code
33 | background: #eee
34 |
--------------------------------------------------------------------------------
/slides/31_easing/easing.sass:
--------------------------------------------------------------------------------
1 | .easing-slide.slide
2 | .example
3 | width: 392px
4 | float: left
5 | padding-top: 150px
6 | position: relative
7 | .card
8 | margin: 0 auto
9 | position: relative
10 | +background-image("slides/07_emotions/front.png", 2.5)
11 | .front
12 | position: absolute
13 | top: -1px
14 | left: -1px
15 | width: 100%
16 | height: 100%
17 | background: #ccc
18 | box-shadow: 0 0 3px black(0.3)
19 | +transition(margin-top 2s linear)
20 | border: 1px solid #999
21 | .label
22 | position: absolute
23 | left: 0
24 | top: 100%
25 | margin-top: 10px
26 | width: 100%
27 | text-align: center
28 | line-height: 40px
29 | .better .front
30 | +transition(margin-top 1s ceaser('easeOutBack'))
31 | &.moved
32 | .front
33 | margin-top: -100%
34 | .better .front
35 | +transition(margin-top 3s ceaser('easeOutQuint'))
36 |
--------------------------------------------------------------------------------
/slides/01_title/title.sass:
--------------------------------------------------------------------------------
1 | .slide.title-slide
2 | h2, .name, .company
3 | +narrow-font
4 | color: white
5 | +stroke-text(black)
6 | position: relative
7 | top: -20px
8 | left: -30px
9 | h2
10 | strong
11 | font-size: 71px
12 | .name, .company, .icon
13 | color: white
14 | position: absolute
15 | left: 90px + 95px
16 | .name
17 | top: 284px
18 | font-size: 32px
19 | .company
20 | top: 324px
21 | font-size: 26px
22 | .icon
23 | top: 305px
24 | left: 90px
25 | background: image("slides/01_title/evilmartians.png")
26 | width: 80px
27 | height: 57px
28 | background-size: 100% 100%
29 | .mark
30 | color: white
31 | padding: 4px 7px
32 | border-radius: 4px
33 | background: #c00
34 | position: absolute
35 | bottom: 40px
36 | right: 60px
37 | line-height: 1
38 | +narrow-font
39 | font-size: 30px
40 | a
41 | color: white
42 | border-bottom-color: white(0)
43 | &:hover
44 | border-bottom-color: white(1)
45 |
--------------------------------------------------------------------------------
/vendor/shower/defaults.scss:
--------------------------------------------------------------------------------
1 | // Ribbon theme for Shower HTML presentation template: github.com/pepelsbey/shower
2 | // Copyright © 2010–2012 Vadim Makeev, pepelsbey.net
3 | // Licensed under MIT license: github.com/pepelsbey/shower/wiki/License-En
4 |
5 | // Variables
6 | $width:1024px; // Slide width
7 | $height:640px; // Slide height
8 | $top:71px; // Top padding before slide content
9 | $sides:120px; // Left and right paddings around slide content
10 | $break:1304px; // Width for small thumbnails in the list mode
11 |
12 | // Mixins
13 | @mixin tab-size($n) {
14 | -moz-tab-size:$n;
15 | -o-tab-size:$n;
16 | tab-size:$n;
17 | }
18 | @mixin transform($n) {
19 | -webkit-transform:$n;
20 | -moz-transform:$n;
21 | -ms-transform:$n;
22 | -o-transform:$n;
23 | transform:$n;
24 | }
25 | @mixin transform-origin($n) {
26 | -webkit-transform-origin:$n;
27 | -moz-transform-origin:$n;
28 | -ms-transform-origin:$n;
29 | -o-transform-origin:$n;
30 | transform-origin:$n;
31 | }
32 | @mixin transition($n) {
33 | -webkit-transition:$n;
34 | -moz-transition:$n;
35 | -o-transition:$n;
36 | transition:$n;
37 | }
38 |
--------------------------------------------------------------------------------
/vendor/shower/reset.scss:
--------------------------------------------------------------------------------
1 | html, body, div, span, applet, object, iframe,
2 | h1, h2, h3, h4, h5, h6, p, blockquote, pre,
3 | a, abbr, acronym, address, big, cite, code,
4 | del, dfn, em, img, ins, kbd, q, s, samp,
5 | small, strike, strong, sub, sup, tt, var,
6 | b, u, i, center,
7 | dl, dt, dd, ol, ul, li,
8 | fieldset, form, label, legend,
9 | table, caption, tbody, tfoot, thead, tr, th, td,
10 | article, aside, canvas, details, embed,
11 | figure, figcaption, footer, header, hgroup,
12 | menu, nav, output, ruby, section, summary,
13 | time, mark, audio, video {
14 | margin:0;
15 | padding:0;
16 | border:0;
17 | font-size:100%;
18 | font:inherit;
19 | vertical-align:baseline;
20 | }
21 | article, aside, details, figcaption, figure,
22 | footer, header, hgroup, menu, nav, section {
23 | display:block;
24 | }
25 | body {
26 | line-height:1;
27 | }
28 | ol, ul {
29 | list-style:none;
30 | }
31 | blockquote, q {
32 | quotes:none;
33 | }
34 | blockquote:before, blockquote:after,
35 | q:before, q:after {
36 | content:'';
37 | content:none;
38 | }
39 | table {
40 | border-collapse:collapse;
41 | border-spacing:0;
42 | }
43 |
--------------------------------------------------------------------------------
/slides/23_more/more.sass:
--------------------------------------------------------------------------------
1 | .more-slide.slide
2 | code
3 | line-height: 36px
4 | font-size: 22px
5 | .example
6 | -webkit-transition: -webkit-transform 1s
7 | -o-transition: -o-transform 1s
8 | transition: transform 1s
9 | position: relative
10 | left: 335px
11 | top: -20px
12 | width: image-width("slides/23_more/robot.png") / 2
13 | height: image-height("slides/23_more/robot.png") / 2
14 | .image
15 | +background-image("slides/23_more/robot.png", 2)
16 | position: relative
17 | left: 20px
18 | &.rotated .example
19 | -webkit-transition-property: left, -webkit-transform, margin-left
20 | -o-transition-property: left, -o-transform, margin-left
21 | transition-property: left, transform, margin-left
22 | +transition-delay("200ms, 1200ms, 2200ms")
23 | .cursor
24 | +background-image("common/cursor.png")
25 | position: absolute
26 | left: 510px
27 | top: 550px
28 | +transition(top 400ms)
29 |
30 | .enabled3d .more-slide.slide.rotated
31 | .cursor
32 | top: 520px
33 | .example
34 | left: 335px + 200px
35 | +rotateY(180deg)
36 | margin-left: -200px
37 |
--------------------------------------------------------------------------------
/slides/06_channel/channel.sass:
--------------------------------------------------------------------------------
1 | .channel-slide.slide
2 | .example
3 | margin: 70px
4 | background: image("slides/05_fear/popup.png")
5 | width: 226px
6 | height: 155px
7 | background-position: -9px -40px
8 | float: left
9 | border-radius: 20px
10 | position: relative
11 | box-shadow: 0 0 5px black(0.4)
12 | .email
13 | background: white
14 | position: absolute
15 | top: 52px
16 | left: 30px
17 | font-size: 10px
18 | line-height: 1
19 | padding: 4px 50px 2px 0
20 | .password, .wrong
21 | background: white
22 | position: absolute
23 | top: 83px
24 | left: 30px
25 | font-size: 10px
26 | line-height: 1
27 | padding: 4px 50px 2px 0
28 | .wrong
29 | color: #c00
30 | padding-right: 0
31 | display: none
32 | &.bad .wrong
33 | display: block
34 | &.animated
35 | float: right
36 | &.bad
37 | +animation(channel-shaking 1100ms)
38 |
39 | +keyframes(channel-shaking)
40 | 0%
41 | left: 0
42 | 20%
43 | left: -60px
44 | 40%
45 | left: 45px
46 | 60%
47 | left: -15px
48 | 80%
49 | left: 5px
50 | 100%
51 | left: 0
52 |
--------------------------------------------------------------------------------
/Gemfile.lock:
--------------------------------------------------------------------------------
1 | GEM
2 | remote: http://rubygems.org/
3 | specs:
4 | ceaser-easing (0.4)
5 | compass (>= 0.12)
6 | chunky_png (1.2.6)
7 | coffee-script (2.2.0)
8 | coffee-script-source
9 | execjs
10 | coffee-script-source (1.3.3)
11 | compass (0.13.alpha.0)
12 | chunky_png (~> 1.2)
13 | fssm (>= 0.2.7)
14 | sass (~> 3.2.0.alpha.93)
15 | execjs (1.4.0)
16 | multi_json (~> 1.0)
17 | fssm (0.2.9)
18 | libv8 (3.3.10.4)
19 | multi_json (1.3.6)
20 | rack (1.4.1)
21 | rack-protection (1.2.0)
22 | rack
23 | rake (0.9.2.2)
24 | sass (3.2.1)
25 | sinatra (1.3.3)
26 | rack (~> 1.3, >= 1.3.6)
27 | rack-protection (~> 1.2)
28 | tilt (~> 1.3, >= 1.3.3)
29 | slim (1.3.2)
30 | temple (~> 0.5.0)
31 | tilt (~> 1.3.3)
32 | temple (0.5.4)
33 | therubyracer (0.10.2)
34 | libv8 (~> 3.3.10)
35 | tilt (1.3.3)
36 | uglifier (1.3.0)
37 | execjs (>= 0.3.0)
38 | multi_json (~> 1.0, >= 1.0.2)
39 |
40 | PLATFORMS
41 | ruby
42 |
43 | DEPENDENCIES
44 | ceaser-easing
45 | coffee-script
46 | compass (~> 0.13.alpha.0)
47 | rake
48 | sinatra
49 | slim
50 | therubyracer
51 | uglifier
52 |
--------------------------------------------------------------------------------
/slides/10_team/team.sass:
--------------------------------------------------------------------------------
1 | .team-slide.slide
2 | .team
3 | margin-top: 45px
4 | position: relative
5 | .cirle
6 | width: 150px
7 | height: 150px
8 | line-height: 150px
9 | text-align: center
10 | +border-radius(50%)
11 | display: inline-block
12 | margin-left: -30px
13 | border: 4px solid black
14 | position: relative
15 | font-size: 15px
16 | &:first-child
17 | margin-left: 0
18 | .designer
19 | border-color: #ff8800
20 | background-color: rgba(255, 136, 0, 0.5)
21 | .frontend
22 | border-color: #669900
23 | background-color: rgba(102, 153, 0, 0.5)
24 | .programmer
25 | border-color: #0099cc
26 | background-color: rgba(0, 153, 204, 0.5)
27 | .desc
28 | position: absolute
29 | top: 5px
30 | right: 50px
31 | height: 150px
32 | line-height: 150px
33 | font-size: 22px
34 |
35 | .team.good
36 | margin-left: 60px
37 |
38 | .team.bad
39 | margin-top: 65px
40 | .manager
41 | display: inline-block
42 | border: 4px solid #ccad00
43 | background-color: rgba(216, 203, 0, 0.5)
44 | font-size: 15px
45 | text-align: center
46 | height: 50px
47 | line-height: 50px
48 | +rotate(90deg)
49 | width: 150px
50 | margin: 0 -35px 0 -65px
51 |
--------------------------------------------------------------------------------
/slides/30_support/support.sass:
--------------------------------------------------------------------------------
1 | .slide.support-slide
2 | .browsers
3 | margin: 130px 0 0 -80px
4 | text-align: center
5 | font-size: 30px
6 | .browser
7 | margin: 0 0 0 80px
8 | display: inline-block
9 | padding-top: 100px
10 | position: relative
11 | width: 100px
12 | img
13 | position: absolute
14 | top: 0
15 | left: 0
16 | &.msie img
17 | left: -10px
18 | &.ios img
19 | top: 4px
20 | left: 2px
21 | &.android img
22 | left: 5px
23 | .current, .beta
24 | position: absolute
25 | width: 130px
26 | left: -15px
27 | font-size: 24px
28 | text-align: left
29 | .current
30 | top: 115px
31 | .beta
32 | top: 145px
33 | .version
34 | float: left
35 | text-align: right
36 | width: 35px
37 | +narrow-font
38 | margin: 5px 8px 0 0
39 | font-size: 16px
40 | .status
41 | position: relative
42 | .ok
43 | color: #6dcc00
44 | top: -2px
45 | .no
46 | color: #c30
47 | top: -1px
48 | .prefixed
49 | font-size: 18px
50 | top: 2px
51 | .ff
52 | .current, .beta
53 | left: -5px
54 | .opera
55 | .current, .beta
56 | left: 6px
57 | .msie
58 | img
59 | opacity: 0.6
60 | .current, .beta
61 | left: 15px
62 |
--------------------------------------------------------------------------------
/common/layout.slim:
--------------------------------------------------------------------------------
1 | doctype 5
2 | html lang="ru"
3 | head
4 | meta charset="UTF-8"
5 | title Анимации по-новому — лень, гордыня и нетерпимость
6 | meta name="viewport" content="width=1274, user-scalable=no"
7 | - if production?
8 | - google_fonts.each do |i|
9 | link rel="stylesheet" href="http://fonts.googleapis.com/css?#{i}"
10 | script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"
11 | style
12 | = include_style 'style'
13 | = slides_styles
14 | - unless development?
15 | = include_counter
16 | body.list
17 |
18 | header.caption
19 | h1 Анимации по-новому — лень, гордыня и нетерпимость
20 | p
21 | | Андрей Ситник,
22 | Злые марсиане
23 |
24 | - slides.each_with_index do |slide, i|
25 | section.slide id=(i + 1) class="#{slide.name}-slide#{slide.types}"
26 | - if slide.title
27 | h2= slide.title
28 | = slide.html
29 |
30 | .progress
31 | div
32 |
33 | - unless production?
34 | style
35 | = include_style 'fonts'
36 | script
37 | = compress_js do
38 | - unless production?
39 | = include_js 'jquery'
40 | = include_js 'shower/script'
41 | = include_js 'action'
42 | = slides_jses
43 |
--------------------------------------------------------------------------------
/slides/07_emotions/emotions.sass:
--------------------------------------------------------------------------------
1 | .emotions-slide.slide
2 | .example
3 | float: left
4 | width: (384px / 1.5)
5 | height: (384px / 1.5)
6 | position: relative
7 | margin: 40px 40px 0 40px
8 | &.animated
9 | float: right
10 | .card
11 | +transition(all 700ms)
12 | &.rotated
13 | .front
14 | display: none
15 | .back
16 | display: block
17 | .front, .back, .card
18 | width: 100%
19 | height: 100%
20 | position: absolute
21 | .front
22 | background: image("slides/07_emotions/front.png")
23 | .back
24 | background: image("slides/07_emotions/back.png")
25 | display: none
26 | .front, .back
27 | background-size: 100% 100%
28 |
29 | .enabled3d .emotions-slide.slide
30 | .example
31 | +perspective(800px)
32 | &.animated
33 | .card
34 | +transform-style(preserve-3d)
35 | -webkit-transform-origin: right center
36 | -moz-transform-origin: right center
37 | -ms-transform-origin: right center
38 | -o-transform-origin: right center
39 | transform-origin: right center
40 | &.rotated
41 | .card
42 | +transform( translateX(-100%) rotateY(-180deg) )
43 | .front
44 | display: block
45 | .back
46 | display: none
47 | +rotateY(180deg)
48 | .front, .back
49 | +backface-visibility(hidden)
50 |
--------------------------------------------------------------------------------
/slides/16_difficult/difficult.slim:
--------------------------------------------------------------------------------
1 | - title 'JS: Сложнее'
2 |
3 | ul
4 | li Нужно уметь программировать
5 | li Нужно описывать алгоритм, а не как это выглядит
6 |
7 | pre
8 | code if app.media('transform-3d')
9 | code opensource.addClass('animated3d')
10 | code transform = app.css3prop('transform')
11 |
12 | code light = $$('.light')
13 | code shadow = $$('.shadow')
14 | code corner = $$('.corner')
15 | code animation = $({ i: 0 })
16 |
17 | code link.hover ->
18 | code back = !link.is(':hover')
19 |
20 | code link.removeClass('bended') if back
21 | code animation.stop().animate { i: (if back then 0 else 1) },
22 | code duration: 600
23 | code easing: 'easeInOutQuad'
24 | code step: (i) ->
25 | code angle = Math.round(180 * i)
26 | code corner.css(transform, "rotate3d(1, 1, 0, \#{angle}deg)")
27 | code if i < 0.5
28 | code light.css(opacity: 2 * i)
29 | code shadow.css(opacity: 0)
30 | code else
31 | code light.css(opacity: 0)
32 | code shadow.css(opacity: (1 - i) / 6)
33 | code if i > 0.85 and not back
34 | code link.addClass('bended')
35 |
36 | code link.mousedown ->
37 | code corner.css(transform, 'rotate3d(1, 1, 0, 190deg)')
38 | code link.removeClass('bended')
39 | code link.mouseup ->
40 | code corner.css(transform, 'rotate3d(1, 1, 0, 180deg)')
41 | code link.addClass('bended')
42 | code else
43 | code link.addClass('animated2d')
44 |
--------------------------------------------------------------------------------
/slides/26_infinite/ouroboros.svg:
--------------------------------------------------------------------------------
1 |
8 |
--------------------------------------------------------------------------------
/slides/24_animations/animations.sass:
--------------------------------------------------------------------------------
1 | .animations-slide.slide
2 | code
3 | font-size: 20px
4 | line-height: 36px
5 | .red
6 | color: #c30
7 | .blue
8 | color: #09c
9 | .green
10 | color: #3c0
11 | .timeline
12 | position: absolute
13 | top: 170px
14 | right: 340px
15 | width: 10px
16 | height: 385px
17 | .div
18 | position: absolute
19 | top: 0
20 | left: 0
21 | right: 0
22 | bottom: 0
23 | +background( linear-gradient(gray, gray 40px, #3c0 40px, #3c0) )
24 | .animation
25 | position: absolute
26 | top: 80px
27 | left: 15px
28 | width: 10px
29 | height: 240px
30 | +background( linear-gradient(#09c, #c30 80px, #09c 80px, #c30 160px, #09c 160px, #c30) )
31 | .mark
32 | position: absolute
33 | left: 45px
34 | line-height: 20px
35 | margin-top: -12px
36 | font-size: 18px
37 | &::before
38 | position: absolute
39 | width: 45px
40 | height: 1px
41 | background: black
42 | left: -55px
43 | top: 11px
44 | content: " "
45 | opacity: 0.7
46 | &.hover
47 | top: 39px
48 | &.start
49 | top: 80px
50 | &.anim1
51 | top: 160px
52 | &.anim2
53 | top: 240px
54 | &.anim3
55 | top: 320px
56 | .time
57 | position: absolute
58 | left: -60px
59 | text-align: right
60 | width: 40px
61 | font-size: 16px
62 | line-height: 1
63 | &.delay
64 | top: 51px
65 | &.duration1
66 | top: 108px
67 | &.duration2
68 | top: 108px + 80px
69 | &.duration3
70 | top: 108px + 160px
71 | .example
72 | position: absolute
73 | top: 60px
74 | left: 640px
75 | width: 80px
76 | height: 80px
77 | background: gray
78 | .cursor
79 | +background-image("common/cursor.png")
80 | position: absolute
81 | top: 60px + 40px
82 | left: 730px
83 | +transition(left 400ms linear)
84 | &.cursored .cursor
85 | left: 710px
86 | &.colored .example
87 | background: #3c0
88 | +animation(animations-backgrounding 1s)
89 | +animation-delay(0.5s)
90 | +animation-iteration-count(3)
91 |
92 | +keyframes(animations-backgrounding)
93 | 0%
94 | background: #09c
95 | 100%
96 | background: #c30
97 |
--------------------------------------------------------------------------------
/common/action.coffee:
--------------------------------------------------------------------------------
1 | window.after = (ms, fn) -> setTimeout(fn, ms)
2 | window.every = (ms, fn) -> setInterval(fn, ms)
3 |
4 | # Удобства для написания скриптов слайдов
5 |
6 | window.presentation =
7 | slide: (name, callback) ->
8 | jQuery ->
9 | slide = $(".slide.#{name}-slide")
10 |
11 | slide.open = (openCallback) ->
12 | presentation.onSlide (s) ->
13 | openCallback() if s.hasClass("#{name}-slide")
14 | slide.close = (closeCallback) ->
15 | presentation.onList(closeCallback)
16 | presentation.onSlide (s) ->
17 | closeCallback() unless s.hasClass("#{name}-slide")
18 | slide.every = (ms, fn) ->
19 | slide.open ->
20 | slide.watcher = after (ms / 3), ->
21 | fn()
22 | slide.watcher = setInterval(fn, ms)
23 | slide.close ->
24 | clearInterval(slide.watcher) if slide.watcher
25 |
26 | finder = (selector) -> $(selector, slide)
27 | callback($, finder, slide)
28 |
29 | jQuery ($) ->
30 |
31 | # Открываем ссылки в новых вкладках
32 |
33 | $('a[href^=http]').attr(target: '_blank')
34 |
35 | # Перехватываем переключение между слайдами
36 |
37 | slideCallbacks = jQuery.Callbacks()
38 | listCallbacks = jQuery.Callbacks()
39 | listMode = false
40 | currentSlide = null
41 |
42 | urlChanged = ->
43 | if location.search == '?full'
44 | listMode = false
45 | if currentSlide != location.hash
46 | currentSlide = location.hash
47 | slideCallbacks.fire($(location.hash))
48 | else
49 | currentSlide = null
50 | unless listMode
51 | listMode = true
52 | listCallbacks.fire()
53 |
54 | origin = {}
55 | for method in ['pushState', 'replaceState']
56 | do (method) ->
57 | origin[method] = history[method]
58 | history[method] = ->
59 | origin[method].apply(history, arguments)
60 | urlChanged()
61 | $(window).on('popstate', urlChanged)
62 | $(window).on('hashchange', urlChanged)
63 |
64 | presentation.onSlide = (callback) -> slideCallbacks.add(callback)
65 | presentation.onList = (callback) -> listCallbacks.add(callback)
66 |
67 | # Включение/выключение 3D-режима
68 |
69 | mode3d = false
70 |
71 | presentation.onSlide (slide) ->
72 | if slide.hasClass('use3d')
73 | $('body').addClass('enabled3d')
74 | else
75 | $('body').removeClass('enabled3d')
76 |
77 | presentation.onList ->
78 | $('body').removeClass('enabled3d')
79 |
--------------------------------------------------------------------------------
/Rakefile:
--------------------------------------------------------------------------------
1 | require 'pathname'
2 | require 'base64'
3 | ROOT = Pathname(__FILE__).dirname
4 | PUBLIC = ROOT.join('public')
5 | SLIDES = ROOT.join('slides')
6 | COMMON = ROOT.join('common')
7 | VENDOR = ROOT.join('vendor')
8 |
9 | require 'slim'
10 | require 'compass'
11 | require 'ceaser-easing'
12 | require 'coffee-script'
13 | require 'uglifier'
14 |
15 | Compass.configuration.images_path = ROOT.to_s
16 | Compass.configuration.fonts_path = VENDOR.to_s
17 |
18 | class Pathname
19 | def glob(pattern, &block)
20 | Pathname.glob(self.join(pattern), &block)
21 | end
22 |
23 | def copy_to(to_dir, pattern = '**/*', &block)
24 | self.glob(pattern) do |from|
25 | next if from.directory?
26 | next if block_given? and yield
27 | to = to_dir.join(from.relative_path_from(self))
28 | to.dirname.mkpath
29 | FileUtils.cp(from, to)
30 | end
31 | end
32 | end
33 |
34 | Slide = Struct.new(:name, :title, :types, :html, :file) do
35 | def style
36 | file.dirname.join("#{name}.sass")
37 | end
38 |
39 | def js
40 | file.dirname.join("#{name}.coffee")
41 | end
42 |
43 | def name
44 | file.basename.sub_ext('')
45 | end
46 | end
47 |
48 | class Environment
49 | attr_accessor :slides
50 |
51 | def name(value); @name = value; end
52 | def title(value); @title = value; end
53 |
54 | def type(*values)
55 | @types += ' ' + values.join(' ')
56 | end
57 |
58 | def render(file, &block)
59 | @current = file
60 | options = { format: :html5, disable_escape: true }
61 | Slim::Template.new(file.to_s, options).render(self, &block)
62 | end
63 |
64 | def find_asset(path, ext = nil)
65 | [COMMON, VENDOR].map { |i| i.join(path) }.find { |i| i.exist? }
66 | end
67 |
68 | def include_style(path)
69 | file = find_asset(path + '.css')
70 | if file
71 | file.read
72 | else
73 | file = find_asset(path + '.sass')
74 | compile(file) if file
75 | end
76 | end
77 |
78 | def include_js(path)
79 | file = find_asset(path + '.js')
80 | if file
81 | file.read
82 | else
83 | file = find_asset(path + '.coffee')
84 | compile(file) if file
85 | end
86 | end
87 |
88 | def sass_options
89 | @sass_options ||= begin
90 | Compass.configuration.http_images_path = development? ? '/' : './'
91 | Compass.configuration.http_fonts_path = if development?
92 | 'vendor/'
93 | else
94 | 'file:///' + VENDOR.to_s
95 | end
96 |
97 | opts = Compass.sass_engine_options
98 | opts[:line_comments] = false
99 | opts[:style] = development? ? :nested : :compressed
100 | opts[:load_paths] << Sass::Importers::Filesystem.new(VENDOR)
101 | opts
102 | end
103 | end
104 |
105 | def sass_before
106 | base = COMMON.join('_base.sass').read
107 | if standalone?
108 | base + COMMON.join('_standalone.sass').read
109 | else
110 | base
111 | end
112 | end
113 |
114 | def compile(file)
115 | if file.extname == '.sass'
116 | Sass::Engine.new(sass_before + file.read, sass_options).render
117 | elsif file.extname == '.coffee'
118 | CoffeeScript.compile(file.read)
119 | end
120 | end
121 |
122 | def slide(file)
123 | @name = @title = @cover = nil
124 | @types = ''
125 | html = render(file)
126 | html = image_tag(@cover, class: 'cover') + html if @cover
127 | @slides << Slide.new(@name, @title, @types, html, file)
128 | end
129 |
130 | def slides_styles
131 | slides.map(&:style).reject {|i| !i.exist? }.map {|i| compile(i) }.join("\n")
132 | end
133 |
134 | def slides_jses
135 | slides.map(&:js).reject {|i| !i.exist? }.map {|i| compile(i) }.join("\n")
136 | end
137 |
138 | def compress_js(&block)
139 | js = yield(block)
140 | if development?
141 | js
142 | else
143 | Uglifier.compile(js, copyright: false)
144 | end
145 | end
146 |
147 | def image_tag(name, attrs = { })
148 | attrs[:alt] ||= ''
149 | uri = @current.dirname.join(name)
150 | type = file_type(uri)
151 | if type == 'image/gif'
152 | attrs[:class] = (attrs[:class] ? attrs[:class] + ' ' : '') + 'gif'
153 | end
154 |
155 | return uri.read if name =~ /\.svg$/
156 |
157 | if standalone?
158 | uri = encode_image(uri, type)
159 | else
160 | uri = uri.to_s.gsub(ROOT.to_s + '/', '')
161 | end
162 | attrs = attrs.map { |k, v| "#{k}=\"#{v}\"" }.join(' ')
163 | "
"
164 | end
165 |
166 | def encode_image(file, type)
167 | "data:#{type};base64," + Base64.encode64(file.open { |io| io.read })
168 | end
169 |
170 | def file_type(file)
171 | `file -ib #{file}`.split(';').first
172 | end
173 |
174 | def cover(name)
175 | @types += ' cover'
176 | @cover = name
177 | end
178 |
179 | def include_counter
180 | COMMON.join('_counter.html').read
181 | end
182 |
183 | def standalone?
184 | @build_type == 'standalone'
185 | end
186 |
187 | def production?
188 | @build_type == 'production'
189 | end
190 |
191 | def development?
192 | @build_type == 'development'
193 | end
194 |
195 | def google_fonts
196 | ['family=PT+Sans&subset=latin,cyrillic',
197 | 'family=PT+Sans+Narrow:700&subset=latin,cyrillic',
198 | 'family=PT+Mono']
199 | end
200 |
201 | def result_file
202 | if standalone?
203 | 'anim2012.html'
204 | else
205 | 'index.html'
206 | end
207 | end
208 |
209 | def layout_file
210 | COMMON.join('layout.slim')
211 | end
212 |
213 | def clean!
214 | PUBLIC.mkpath
215 | PUBLIC.glob('*') { |i| i.rmtree }
216 | self
217 | end
218 |
219 | def build!(build_type = 'development')
220 | @build_type = build_type
221 |
222 | @slides = []
223 | SLIDES.glob('**/*.slim').sort.each { |i| slide(i) }
224 |
225 | PUBLIC.join(result_file).open('w') { |io| io << render(layout_file) }
226 | if production?
227 | ROOT.copy_to(PUBLIC, '**/*.{png,gif,jpg}') do |image|
228 | image.to_s.start_with? PUBLIC.to_s
229 | end
230 | end
231 |
232 | if standalone?
233 | `zip -j public/anim2012.zip public/anim2012.html`
234 | FileUtils.rm PUBLIC.join('anim2012.html')
235 | end
236 |
237 | self
238 | end
239 | end
240 |
241 | desc 'Build site files'
242 | task :build do
243 | Environment.new.clean!.build!('production')
244 | end
245 |
246 | desc 'Build presentation all-in-one file'
247 | task :standalone do
248 | Environment.new.clean!.build!('standalone')
249 | end
250 |
251 | desc 'Run server for development'
252 | task :server do
253 | require 'sinatra/base'
254 |
255 | class WebSlides < Sinatra::Base
256 | get '/' do
257 | slides_env.clean!.build!
258 | send_file PUBLIC.join('index.html')
259 | end
260 |
261 | get '/*' do
262 | send_file ROOT.join(params[:splat].first)
263 | end
264 |
265 | def slides_env
266 | @slides_env ||= Environment.new
267 | end
268 | end
269 |
270 | WebSlides.run!
271 | end
272 |
273 | desc 'Prepare commit to GitHub Pages'
274 | task :deploy => :build do
275 | sh ['git checkout gh-pages',
276 | 'git rm index.html',
277 | 'git rm -r common/',
278 | 'git rm -r slides/',
279 | 'git rm -r vendor/',
280 | 'cp -r public/* ./',
281 | 'git add index.html',
282 | 'git add common/',
283 | 'git add slides/',
284 | 'git add vendor/'].join(' && ')
285 | end
286 |
--------------------------------------------------------------------------------
/vendor/shower/screen.scss:
--------------------------------------------------------------------------------
1 | // Ribbon theme for Shower HTML presentation template: github.com/pepelsbey/shower
2 | // Copyright © 2010–2012 Vadim Makeev, pepelsbey.net
3 | // Licensed under MIT license: github.com/pepelsbey/shower/wiki/License-En
4 |
5 | @import 'defaults.scss';
6 | @import 'reset.scss';
7 |
8 | body {
9 | counter-reset:paging;
10 | font:25px/2 'PT Sans', sans-serif;
11 | }
12 |
13 | // Slide
14 | // -------------------------------
15 | .slide {
16 | padding:$top $sides 0;
17 | width:$width - $sides * 2;
18 | height:$height - $top;
19 | background:#FFF url(../images/ribbon.svg) 865px 0 no-repeat;
20 | color:#000;
21 | &:after {
22 | position:absolute;
23 | counter-increment:paging;
24 | content:counter(paging, decimal-leading-zero);
25 | line-height:1;
26 | }
27 | .debug & {
28 | background:
29 | url(../images/ribbon.svg) 865px 0 no-repeat,
30 | url(../images/grid-16x10.png) no-repeat,
31 | #FFF;
32 | }
33 | }
34 |
35 | // Header
36 | .slide {
37 | h2 {
38 | margin:0 0 37px;
39 | color:#666;
40 | font:bold 50px/50px 'PT Sans Narrow', sans-serif;
41 | }
42 | // Text
43 | p {
44 | margin:0 0 50px;
45 | }
46 | p.note {
47 | color:#999;
48 | }
49 | a {
50 | border-bottom:0.1em solid;
51 | color:#0174A7;
52 | text-decoration:none;
53 | }
54 | b, strong {
55 | font-weight:bold;
56 | }
57 | i, em {
58 | font-style:italic;
59 | }
60 | kbd, code, samp {
61 | padding:3px 8px;
62 | border-radius:8px;
63 | background:#FAFAA2;
64 | color:#000;
65 | @include tab-size(4);
66 | line-height:1;
67 | font-family:'PT Mono', monospace;
68 | }
69 | // Quote
70 | blockquote {
71 | font-style:italic;
72 | &:before {
73 | position:absolute;
74 | margin:-16px 0 0 -80px;
75 | color:#CCC;
76 | font:200px/1 'PT Sans', sans-serif;
77 | content:'\201C';
78 | }
79 | & + figcaption {
80 | margin:-50px 0 40px;
81 | font-style:italic;
82 | font-weight:bold;
83 | }
84 | }
85 | // Lists
86 | ol, ul {
87 | margin:0 0 50px;
88 | counter-reset:list;
89 | li {
90 | text-indent:-2em;
91 | &:before {
92 | display:inline-block;
93 | width:2em;
94 | color:#BBB;
95 | text-align:right;
96 | }
97 | }
98 | ol,
99 | ul {
100 | margin:0 0 0 39px;
101 | }
102 | }
103 | ul > li:before {
104 | content:'\2022\00A0\00A0';
105 | }
106 | ul > li:lang(ru):before {
107 | content:'\2014\00A0\00A0';
108 | }
109 | ol > li:before {
110 | counter-increment:list;
111 | content:counter(list)'.\00A0';
112 | }
113 | // Code
114 | pre {
115 | margin:0 0 50px;
116 | counter-reset:code;
117 | white-space:normal;
118 | code {
119 | display:block;
120 | padding:0;
121 | background:none;
122 | white-space:pre;
123 | line-height:50px;
124 | &:before {
125 | position:absolute;
126 | margin:0 0 0 -110px;
127 | width:100px;
128 | color:#BBB;
129 | text-align:right;
130 | counter-increment:code;
131 | content:counter(code, decimal-leading-zero)'.';
132 | }
133 | }
134 | mark {
135 | margin:0 -8px;
136 | padding:3px 8px;
137 | border-radius:8px;
138 | background:rgba(236,249,0,.37);
139 | color:#000;
140 | font-style:normal;
141 | &.important {
142 | margin:0;
143 | background:#C00;
144 | color:#FFF;
145 | font-weight:normal;
146 | }
147 | &.comment {
148 | margin:0;
149 | padding:0;
150 | background:none;
151 | color:#999;
152 | }
153 | }
154 | }
155 | // Cover
156 | &.cover {
157 | background:#000;
158 | img, svg, video,
159 | object, canvas {
160 | position:absolute;
161 | top:0;
162 | left:0;
163 | z-index:-1;
164 | clip:rect(0, $width, $height, 0);
165 | }
166 | &.w {
167 | img, svg, video,
168 | object, canvas {
169 | width:100%;
170 | }
171 | }
172 | &.h {
173 | img, svg, video,
174 | object, canvas {
175 | height:100%;
176 | }
177 | }
178 | &.c {
179 | img, svg, video,
180 | object, canvas {
181 | left:50%;
182 | @include transform(translateX(-50%));
183 | }
184 | }
185 | &.m {
186 | img, svg, video,
187 | object, canvas {
188 | top:50%;
189 | @include transform(translateY(-50%));
190 | }
191 | }
192 | }
193 |
194 | // Shout
195 | &.shout {
196 | background-image:none;
197 | h2 {
198 | position:absolute;
199 | top:50%;
200 | left:0;
201 | width:100%;
202 | text-align:center;
203 | line-height:1;
204 | font-size:150px;
205 | @include transform(translateY(-50%));
206 | }
207 | }
208 | // Place
209 | .place {
210 | position:absolute;
211 | &.t, &.m, &.b {
212 | left:50%;
213 | @include transform(translateX(-50%));
214 | }
215 | &.t { top:0; }
216 | &.b { bottom:0; }
217 | &.l, &.m, &.r {
218 | top:50%;
219 | @include transform(translateY(-50%));
220 | }
221 | &.l { left:0; }
222 | &.m { @include transform(translate(-50%, -50%)); }
223 | &.r {
224 | right:0;
225 | left:auto;
226 | }
227 | &.t.l, &.t.r, &.b.r, &.b.l {
228 | @include transform(none);
229 | }
230 | &.t.l, &.t.r { top:0; }
231 | &.b.r, &.b.l { top:auto; }
232 | }
233 | }
234 |
235 | // List
236 | // -------------------------------
237 | .list {
238 | padding:80px 0 40px 100px;
239 | background:#585A5E url(../images/linen.png);
240 | &:after {
241 | clear:both;
242 | display:block;
243 | content:'';
244 | }
245 | // Caption
246 | .caption {
247 | margin:0 0 50px;
248 | color:#3C3D40;
249 | text-shadow:0 1px 1px #8D8E90;
250 | h1 {
251 | font:bold 50px/1 'PT Sans Narrow', sans-serif;
252 | }
253 | a {
254 | color:#4B86C2;
255 | text-shadow:0 -1px 1px #1F3F60;
256 | text-decoration:none;
257 | &:hover {
258 | color:#5ca4ed;
259 | }
260 | }
261 | }
262 | // Slide
263 | .slide {
264 | position:relative;
265 | float:left;
266 | margin:0 -432px -220px 0;
267 | @include transform-origin(0 0);
268 | @include transform(scale(0.5));
269 | @media (max-width:$break) {
270 | margin:0 -718px -400px 0;
271 | @include transform(scale(0.25));
272 | }
273 | &:before {
274 | position:absolute;
275 | top:0;
276 | left:0;
277 | z-index:-1;
278 | width:$width/2;
279 | height:$height/2;
280 | box-shadow:
281 | 0 0 30px rgba(0, 0, 0, 0.005),
282 | 0 20px 50px rgba(42, 43, 45, 0.6);
283 | border-radius:2px;
284 | content:'';
285 | @include transform-origin(0 0);
286 | @include transform(scale(2));
287 | @media (max-width:$break) {
288 | width:$width/4;
289 | height:$height/4;
290 | @include transform(scale(4));
291 | }
292 | }
293 | &:after {
294 | bottom:-100px;
295 | left:120px;
296 | color:#3C3D40;
297 | text-shadow:0 2px 1px #8D8E90;
298 | font-weight:bold;
299 | font-size:50px;
300 | @media (max-width:$break) {
301 | bottom:-180px;
302 | text-shadow:0 4px 2px #8D8E90;
303 | font-size:100px;
304 | }
305 | }
306 | &:hover:before {
307 | box-shadow:
308 | 0 0 0 10px rgba(42, 43, 45, 0.3),
309 | 0 20px 50px rgba(42, 43, 45, 0.6);
310 | }
311 | &:target {
312 | &:before {
313 | box-shadow:
314 | 0 0 0 1px #305F8D,
315 | 0 0 0 10px #3C7CBD,
316 | 0 20px 50px rgba(42, 43, 45, 0.6);
317 | @media (max-width:$break) {
318 | box-shadow:
319 | 0 0 0 1px #305F8D,
320 | 0 0 0 10px #3C7CBD,
321 | 0 20px 50px rgba(42, 43, 45, 0.6);
322 | }
323 | }
324 | &:after {
325 | text-shadow:0 2px 1px rgba(42, 43, 45, 0.6);
326 | color:#4B86C2;
327 | @media (max-width:$break) {
328 | text-shadow:0 4px 2px rgba(42, 43, 45, 0.6);
329 | }
330 | }
331 | }
332 | }
333 | }
334 |
335 | // Full
336 | // -------------------------------
337 | .full {
338 | position:absolute;
339 | top:50%;
340 | left:50%;
341 | overflow:hidden;
342 | margin:(-$height/2) 0 0 (-$width/2);
343 | width:$width;
344 | height:$height;
345 | background:#000;
346 | .caption {
347 | display:none;
348 | }
349 | .slide {
350 | position:absolute;
351 | top:0;
352 | left:0;
353 | visibility:hidden;
354 | &:after {
355 | position:absolute;
356 | left:120px;
357 | bottom:80px;
358 | color:#CCC;
359 | line-height:18px;
360 | font-size:25px;
361 | }
362 | &:target {
363 | visibility:visible;
364 | }
365 | // Cover Shout
366 | &.cover,
367 | &.shout {
368 | z-index:1;
369 | &:after {
370 | content:'';
371 | }
372 | }
373 | }
374 | // Next Lists
375 | li.next {
376 | opacity:0;
377 | &.active {
378 | opacity:1;
379 | @include transition(opacity 0.5s linear);
380 | }
381 | }
382 | // Progress
383 | .progress {
384 | position:absolute;
385 | right:118px;
386 | bottom:40px;
387 | left:118px;
388 | div {
389 | width:0;
390 | height:10px;
391 | box-shadow:0 0 0 1px rgba(255, 255, 255, 0.4);
392 | border-radius:5px;
393 | background:rgba(177, 177, 177, 0.4);
394 | @include transition(width 0.2s linear);
395 | }
396 | }
397 | }
398 |
--------------------------------------------------------------------------------
/vendor/shower/script.js:
--------------------------------------------------------------------------------
1 | (function () {
2 | var url = window.location,
3 | body = document.body,
4 | slides = document.querySelectorAll('.slide'),
5 | progress = document.querySelector('div.progress div'),
6 | slideList = [],
7 | timer,
8 | l = slides.length, i;
9 |
10 | for (i = 0; i < l; i++) {
11 | // Slide ID's are optional. In case of missing ID we set it to the
12 | // slide number
13 | if (!slides[i].id) {
14 | slides[i].id = i + 1;
15 | }
16 |
17 | slideList.push({
18 | id: slides[i].id,
19 | hasInnerNavigation: null !== slides[i].querySelector('.next'),
20 | hasTiming: null != slides[i].dataset.timing
21 | });
22 | }
23 |
24 | function getTransform() {
25 | var denominator = Math.max(
26 | body.clientWidth / window.innerWidth,
27 | body.clientHeight / window.innerHeight
28 | );
29 |
30 | return 'scale(' + (1 / denominator) + ')';
31 | }
32 |
33 | function applyTransform(transform) {
34 | body.style.WebkitTransform = transform;
35 | body.style.MozTransform = transform;
36 | body.style.msTransform = transform;
37 | body.style.OTransform = transform;
38 | body.style.transform = transform;
39 | }
40 |
41 | function enterSlideMode() {
42 | body.classList.remove('list');
43 | body.classList.add('full');
44 | applyTransform(getTransform());
45 | }
46 |
47 | function enterListMode() {
48 | body.classList.remove('full');
49 | body.classList.add('list');
50 | applyTransform('none');
51 | }
52 |
53 | function getCurrentSlideNumber() {
54 | var i, l = slideList.length,
55 | currentSlideId = url.hash.substr(1);
56 |
57 | for (i = 0; i < l; ++i) {
58 | if (currentSlideId === slideList[i].id) {
59 | return i;
60 | }
61 | }
62 |
63 | return -1;
64 | }
65 |
66 | function scrollToSlide(slideNumber) {
67 | if (-1 === slideNumber ) { return; }
68 |
69 | var currentSlide = document.getElementById(slideList[slideNumber].id);
70 |
71 | if (null != currentSlide) {
72 | window.scrollTo(0, currentSlide.offsetTop);
73 | }
74 | }
75 |
76 | function isListMode() {
77 | return 'full' !== url.search.substr(1);
78 | }
79 |
80 | function normalizeSlideNumber(slideNumber) {
81 | if (0 > slideNumber) {
82 | return 0;
83 | } else if (slideList.length <= slideNumber) {
84 | return slideList.length - 1;
85 | } else {
86 | return slideNumber;
87 | }
88 | }
89 |
90 | function updateProgress(slideNumber) {
91 | if (null === progress) { return; }
92 | progress.style.width = (100 / (slideList.length - 1) * normalizeSlideNumber(slideNumber)).toFixed(2) + '%';
93 | }
94 |
95 | function updateCurrentAndPassedSlides(slideNumber) {
96 | var i, l = slideList.length, slide;
97 | slideNumber = normalizeSlideNumber(slideNumber);
98 |
99 | for ( i = 0; i < l; ++i ) {
100 | slide = document.getElementById(slideList[i].id);
101 |
102 | if ( i < slideNumber ) {
103 | slide.classList.remove('current');
104 | slide.classList.add('passed');
105 | } else if ( i > slideNumber ) {
106 | slide.classList.remove('passed');
107 | slide.classList.remove('current');
108 | } else {
109 | slide.classList.remove('passed');
110 | slide.classList.add('current');
111 | }
112 | }
113 | }
114 |
115 | function getSlideHash(slideNumber) {
116 | return '#' + slideList[normalizeSlideNumber(slideNumber)].id;
117 | }
118 |
119 | function goToSlide(slideNumber) {
120 | url.hash = getSlideHash(slideNumber);
121 |
122 | if (!isListMode()) {
123 | updateProgress(slideNumber);
124 | updateCurrentAndPassedSlides(slideNumber);
125 | }
126 | }
127 |
128 | function getContainingSlideId(el) {
129 | var node = el;
130 | while ('BODY' !== node.nodeName && 'HTML' !== node.nodeName) {
131 | if (node.classList.contains('slide')) {
132 | return node.id;
133 | } else {
134 | node = node.parentNode;
135 | }
136 | }
137 |
138 | return '';
139 | }
140 |
141 | // FIXME: Renaming needed? Or just some handlers rewriting?
142 | function dispatchSingleSlideMode(e) {
143 | // Process links
144 | // TODO: presentation links support
145 | if ('A' === e.target.nodeName) {
146 | e.preventDefault();
147 |
148 | window.open(e.target.getAttribute('href'));
149 | return;
150 | }
151 |
152 | var slideId = getContainingSlideId(e.target);
153 |
154 | if ('' !== slideId && isListMode()) {
155 | e.preventDefault();
156 |
157 | // NOTE: we should update hash to get things work properly
158 | url.hash = '#' + slideId;
159 | history.replaceState(null, null, url.pathname + '?full#' + slideId);
160 | enterSlideMode();
161 |
162 | updateProgress(getCurrentSlideNumber());
163 | updateCurrentAndPassedSlides(getCurrentSlideNumber());
164 | runSlideshowIfPresented(getCurrentSlideNumber());
165 | }
166 | }
167 |
168 | function runSlideshowIfPresented(slideNumber) {
169 | slideNumber = normalizeSlideNumber(slideNumber);
170 |
171 | clearTimeout(timer);
172 |
173 | if (slideList[slideNumber].hasTiming) {
174 | // Compute number of milliseconds from format "X:Y", where X is
175 | // number of minutes, and Y is number of seconds
176 | var timing = document.getElementById(slideList[slideNumber].id).dataset.timing.split(':');
177 | timing = parseInt(timing[0]) * 60 * 1000 + parseInt(timing[1]) * 1000;
178 |
179 | timer = setTimeout( function () {
180 | goToSlide(slideNumber + 1);
181 | runSlideshowIfPresented(slideNumber + 1);
182 | }, timing );
183 | }
184 | }
185 |
186 | // Increases inner navigation by adding 'active' class to next inactive inner navigation item
187 | function increaseInnerNavigation(slideNumber) {
188 | // Shortcut for slides without inner navigation
189 | if (true !== slideList[slideNumber].hasInnerNavigation) { return -1; }
190 |
191 | var nextNodes = document.getElementById(slideList[slideNumber].id).querySelectorAll('.next:not(.active)'),
192 | node;
193 |
194 | if (0 !== nextNodes.length) {
195 | node = nextNodes[0];
196 | node.classList.add('active');
197 | return nextNodes.length - 1;
198 | } else {
199 | return -1;
200 | }
201 | }
202 |
203 | // Event handlers
204 |
205 | window.addEventListener('DOMContentLoaded', function () {
206 | if (!isListMode()) {
207 | // "?full" is present without slide hash, so we should display first slide
208 | if (-1 === getCurrentSlideNumber()) {
209 | history.replaceState(null, null, url.pathname + '?full' + getSlideHash(0));
210 | }
211 |
212 | enterSlideMode();
213 | updateProgress(getCurrentSlideNumber());
214 | updateCurrentAndPassedSlides(getCurrentSlideNumber());
215 | runSlideshowIfPresented(getCurrentSlideNumber())
216 | }
217 | }, false);
218 |
219 | window.addEventListener('popstate', function (e) {
220 | if (isListMode()) {
221 | enterListMode();
222 | scrollToSlide(getCurrentSlideNumber());
223 | } else {
224 | enterSlideMode();
225 | }
226 | }, false);
227 |
228 | window.addEventListener('resize', function (e) {
229 | if (!isListMode()) {
230 | applyTransform(getTransform());
231 | }
232 | }, false);
233 |
234 | document.addEventListener('keydown', function (e) {
235 | // Shortcut for alt, shift and meta keys
236 | if (e.altKey || e.ctrlKey || e.metaKey) { return; }
237 |
238 | var currentSlideNumber = getCurrentSlideNumber(),
239 | innerNavigationCompleted = true;
240 |
241 | switch (e.which) {
242 | case 116: // F5
243 | case 13: // Enter
244 | if (isListMode() && -1 !== currentSlideNumber) {
245 | e.preventDefault();
246 |
247 | history.pushState(null, null, url.pathname + '?full' + getSlideHash(currentSlideNumber));
248 | enterSlideMode();
249 |
250 | updateProgress(currentSlideNumber);
251 | updateCurrentAndPassedSlides(currentSlideNumber);
252 | runSlideshowIfPresented(currentSlideNumber);
253 | }
254 | break;
255 |
256 | case 27: // Esc
257 | if (!isListMode()) {
258 | e.preventDefault();
259 |
260 | history.pushState(null, null, url.pathname + getSlideHash(currentSlideNumber));
261 | enterListMode();
262 | scrollToSlide(currentSlideNumber);
263 | }
264 | break;
265 |
266 | case 33: // PgUp
267 | case 38: // Up
268 | case 37: // Left
269 | case 72: // h
270 | case 75: // k
271 | e.preventDefault();
272 |
273 | currentSlideNumber--;
274 | goToSlide(currentSlideNumber);
275 | break;
276 |
277 | case 34: // PgDown
278 | case 40: // Down
279 | case 39: // Right
280 | case 76: // l
281 | case 74: // j
282 | e.preventDefault();
283 |
284 | if (!isListMode() ) {
285 | // Inner navigation is "completed" if current slide have
286 | // no inner navigation or inner navigation is fully shown
287 | innerNavigationCompleted = !slideList[currentSlideNumber].hasInnerNavigation ||
288 | -1 === increaseInnerNavigation(currentSlideNumber);
289 | } else {
290 | // Also inner navigation is always "completed" if we are in
291 | // list mode
292 | innerNavigationCompleted = true;
293 | }
294 | // NOTE: First of all check if there is no current slide
295 | if (
296 | -1 === currentSlideNumber || innerNavigationCompleted
297 | ) {
298 | currentSlideNumber++;
299 | goToSlide(currentSlideNumber);
300 | // We must run slideshow only in full mode
301 | if (!isListMode()) {
302 | runSlideshowIfPresented(currentSlideNumber);
303 | }
304 | }
305 | break;
306 |
307 | case 36: // Home
308 | e.preventDefault();
309 |
310 | currentSlideNumber = 0;
311 | goToSlide(currentSlideNumber);
312 | break;
313 |
314 | case 35: // End
315 | e.preventDefault();
316 |
317 | currentSlideNumber = slideList.length - 1;
318 | goToSlide(currentSlideNumber);
319 | break;
320 |
321 | case 9: // Tab = +1; Shift + Tab = -1
322 | case 32: // Space = +1; Shift + Space = -1
323 | e.preventDefault();
324 |
325 | currentSlideNumber += e.shiftKey ? -1 : 1;
326 | goToSlide(currentSlideNumber);
327 | break;
328 |
329 | default:
330 | // Behave as usual
331 | }
332 | }, false);
333 |
334 | document.addEventListener('click', dispatchSingleSlideMode, false);
335 | document.addEventListener('touchend', dispatchSingleSlideMode, false);
336 |
337 | document.addEventListener('touchstart', function (e) {
338 | if (!isListMode()) {
339 | var currentSlideNumber = getCurrentSlideNumber(),
340 | x = e.touches[0].pageX;
341 | if (x > window.innerWidth / 2) {
342 | currentSlideNumber++;
343 | } else {
344 | currentSlideNumber--;
345 | }
346 |
347 | goToSlide(currentSlideNumber);
348 | }
349 | }, false);
350 |
351 | document.addEventListener('touchmove', function (e) {
352 | if (!isListMode()) {
353 | e.preventDefault();
354 | }
355 | }, false);
356 |
357 | }());
358 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc. [http://fsf.org/]
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 | {one line to give the program's name and a brief idea of what it does.}
635 | Copyright (C) {year} {name of author}
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see [http://www.gnu.org/licenses/].
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | {project} Copyright (C) {year} {fullname}
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | [http://www.gnu.org/licenses/].
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | [http://www.gnu.org/philosophy/why-not-lgpl.html].
675 |
--------------------------------------------------------------------------------