Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Animationszauber - Geringer Aufwand, Maximale W...
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Martin W. Kirst
March 01, 2014
Programming
0
13
Animationszauber - Geringer Aufwand, Maximale Wirkung
Einfache Animationen via CSS, JS, jQuery
Martin W. Kirst
March 01, 2014
Tweet
Share
More Decks by Martin W. Kirst
See All by Martin W. Kirst
Typescript, an introduction
nitram509
0
16
Doing effective and fun retrospectives
nitram509
0
91
Reactive Programming - Einführung
nitram509
0
16
Domänen-Objekte sortieren mit Vector Space Classification
nitram509
0
26
Sorting Domain Objects via Vector Space Classification
nitram509
0
18
Other Decks in Programming
See All in Programming
疑似コードによるプロンプト記述、どのくらい正確に実行される?
kokuyouwind
0
390
AIエージェント、”どう作るか”で差は出るか? / AI Agents: Does the "How" Make a Difference?
rkaga
4
2k
今から始めるClaude Code超入門
448jp
8
9.1k
例外処理とどう使い分ける?Result型を使ったエラー設計 #burikaigi
kajitack
16
6.1k
izumin5210のプロポーザルのネタ探し #tskaigi_msup
izumin5210
1
140
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
440
高速開発のためのコード整理術
sutetotanuki
1
410
AIと一緒にレガシーに向き合ってみた
nyafunta9858
0
250
Package Management Learnings from Homebrew
mikemcquaid
0
230
今こそ知るべき耐量子計算機暗号(PQC)入門 / PQC: What You Need to Know Now
mackey0225
3
380
Lambda のコードストレージ容量に気をつけましょう
tattwan718
0
140
インターン生でもAuth0で認証基盤刷新が出来るのか
taku271
0
190
Featured
See All Featured
30 Presentation Tips
portentint
PRO
1
220
A designer walks into a library…
pauljervisheath
210
24k
Navigating Team Friction
lara
192
16k
Site-Speed That Sticks
csswizardry
13
1.1k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
79
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
200
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Optimizing for Happiness
mojombo
379
71k
The World Runs on Bad Software
bkeepers
PRO
72
12k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.7k
Are puppies a ranking factor?
jonoalderson
1
2.7k
Transcript
ANIMATIONSZAUBER GERINGER AUFWAND, MAXIMALE WIRKUNG © 03/2014 Martin W. Kirst
/ @nitram509
Twitter ⋅ Github ⋅ SourceForge UX-Experte Von ASM bis Zope
1k Demos (378 Byte) ♥ HTML + CSS + JS ♥
Wirkung Grundlagen Animation Prinzipien CSS Animationen Javascript Animationen Tweens /
Tweening AGENDA
Konsistenz > Vielfalt PRINZIP
Position Rotation Skalierung Transformation WAS?
Laufzeit (duration) Verzögerung (delay) Veränderungskurve (easing) WIE?
Hands on… EASING
EASING « Weitere ... http://easings.net »
CSS ANIMATION - EINFACH #rocket { transition: bottom 4s ease-out,
left 4s ease-out; } #rocket.start { bottom: 11px; left: -13px; } #rocket.end { bottom: 300px; left: 385px; }
CSS ANIMATION - KOMPLEX @keyframes up-and-down { 1% {bottom: 11px;
} 50% {bottom: 145px;} 100% {bottom: 11px; } } #rocket { transition: left 4s, ease-out; } #rocket.start { /* ... */ } #rocket.end { animation: up-and-down 4s; left: 385px; }
CSS MENÜS
CSS BILDER .box { transition: all 500ms cubic-bezier(0.190, 1.000, 0.220,
1.000); box-shadow: 0 1px 1px rgba(0,0,0,0.3); transform: translateY(0) scale(0.95, 0.95); } .box.active { box-shadow: 0 11px 18px rgba(0,0,0,0.2); transform: translateY(-20px) scale(1, 1); } http://aerotwist.com/tutorials/protip-nobody-expects-3d/
CSS3 ADVANCED++ http://anthonycalzadilla.com/css3-ATAT/ ⋅ http://codepen.io/Sonick/pen/vijJl ⋅ http://tympanus.net/Tutorials/CreativeCSS3AnimationMenus/
NACHTEILE CSS-ANIMATION Nur DOM Keine Interaktion Keine Callbacks wenn fertig
Prozentuale Zeitangaben (keyframes)
JS - JQUERY BASICS show / hide fadeIn / fadeOut
slideUp / slideDown animate (custom properties)
JS FADING & SLIDING ToDo List Beispiel
CSS BILDER var logo = $('#bedcon-logo'); logo.animate({color: 255}, { duration:
4000, easing: 'swing', step: function (now, tween) { var color = 255 - (now | 0); this.style.backgroundColor = 'rgb('+color+','+color+','+color+')' }, complete: function() { // 2 Sekunden setTimeout() logo[0].style.backgroundColor = '#fff' } });
TWEENING Schlüsselbildanimation Bewegung zwischen Keyframes Unabhängig von UI-Technologie
CSS BILDER img = document.getElementById("bedcon-tween"); tween1 = new TWEEN.Tween( {
x: 10 } ) .to( { x: 190 }, 3000 ) .onUpdate( function () { img.style.left = this.x + 'px'; }); tween1r = new TWEEN.Tween( { r : 0} ) .to( { r: 360 }, 3000) .onUpdate(function () { img.style.transform="rotate("+this.r+"deg)";}); tween2 = new TWEEN.Tween( { y: 270 } ) .to( { y: 10 } ) .easing(TWEEN.Easing.Elastic.InOut) .onUpdate( function () { img.style.bottom = this.y + 'px'; }); tween1.chain(tween2); tween1.start(); tween1r.start();
FAZIT JS + CSS >> JS xor CSS Konsistenz >>
Vielfalt Einfach => Frameworks Komplex => ...
ANIMATION FUN
DANKE ⋅ THANKS ⋅ MERCI ©2014 Martin W. Kirst Twitter:
@nitram509 ⋅ Github: nitram509 ⋅
[email protected]
http://www.aerotwist.com/lab/ http://johnpolacek.github.io/superscrollorama/ https://medium.com/design-ux/8068a5e4cb82 http://hakim.se/ http://easings.net http://codepen.io/Sonick/pen/vijJl http://anthonycalzadilla.com/css3-ATAT/ http://tympanus.net/Tutorials/CreativeCSS3AnimationMenus/ https://github.com/sole/tween.js/ https://github.com/hakimel/reveal.js http://js1k.com/