You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CSS/RWD/media_queries.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,9 @@ No more browser sniffing or separate m.example.com mobile version of your sites.
18
18
@media only screen and (min-width: 640px) {}
19
19
```
20
20
21
-
**Note**: There is no reason to use `device-width` as desktop browser don't typically use the full width of the monitor physical width like smartphone does.
21
+
**Note**: There is no reason to use `device-width` as desktop browser don't typically use the full width of the monitor physical width like smartphone does.
22
+
23
+
## Content-Driven Breakpoints vs Device-Driven Breakpoints
*[**Stripe - Improve the payment experience with animations**](https://medium.com/@michaelvillar/improve-the-payment-experience-with-animations-3d1b0a9b810e)
55
+
56
+
## Videos
57
+
58
+
*[**Val Head on All the Right Moves: Putting UIs in Motion**](https://vimeo.com/125545020)
51
59
52
60
---
53
61
@@ -93,19 +101,33 @@
93
101
94
102
## Animate as you scroll
95
103
104
+
*[**Some nice demo from Chris Wright**](http://chriswrightdesign.com/experiments/)
96
105
*[WOW.js - Reveal CSS animation as you scroll down a page](https://github.com/matthieua/WOW)
97
106
*[Slide in as you scroll like Google+ app](http://css-tricks.com/slide-in-as-you-scroll-down-boxes/)
98
107
*[Case study](http://www.justinaguilar.com/)
99
108
*[Steady.js](http://lafikl.github.io/steady.js/)
100
109
*[The guide to scrolling animation](http://ihatetomatoes.net/guide-scrolling-animation-libraries/)
*[Dear web designer, let's stop breaking the affordance of scrolling](https://medium.com/user-experience-design-1/dear-web-designer-let-s-stop-breaking-the-affordance-of-scrolling-fe8bf258df7b)
112
+
*[Scrollbar](http://www.unheap.com/?s=scrollbar)
113
+
114
+
## will-change
115
+
116
+
```scss
117
+
// Give browser hints
118
+
.moving-thing {
119
+
will-change: transform;}
120
+
121
+
// Fallback
122
+
.moving-thing-retro {
123
+
transform: translateZ(0);}
124
+
```
103
125
104
126
## Examples
105
127
106
128
To move heading down a bit, and paragraph to move up a bit:
107
129
108
-
```css
130
+
```scss
109
131
h2 {
110
132
animation: moveDown 0.6sease-in-out0.2sbackwards;
111
133
}
@@ -139,9 +161,9 @@ p {
139
161
}
140
162
```
141
163
142
-
Simple transition in/out with router
164
+
**Simple transition in/out with router**
143
165
144
-
```css
166
+
```scss
145
167
.animate-enter {
146
168
opacity: 0.01;
147
169
transition: opacity.5sease-in;
@@ -161,6 +183,71 @@ Simple transition in/out with router
@@ -26,6 +27,7 @@ History of layout in CSS is table, float, inline-block, display:table, flexbox,
26
27
*[Why we ditched the good old select element](https://medium.com/@mibosc/responsive-design-why-and-how-we-ditched-the-good-old-select-element-bc190d62eff5)
27
28
*[**Check out Foundation for Apps**](http://responsivedesign.is/articles/screencast-zurb-foundation-for-apps)
@@ -127,8 +129,12 @@ Use of `min-width` and `max-width` common.
127
129
128
130
Nearly every grid system is based on rows and columns, set to 12 or 16 increments to create any layout. However, the web is changing! It's time for Flexbox to shine.
129
131
132
+
Grids exist in relation to the content. We never start with a grid. We start with an idea which is then translated into a form, a structure.
133
+
130
134
> "What drives me insane in modern web design is grids. What's important is a page that moves. Now, as news flows in, editors can very quickly reshuffle what we're doing on the page, because every module is moveable. Instead of rigid grids, the site is built from these building blocks so we can snap them together like Lego. The news becomes intent driven, rather than layout driven." - Josh Topolsky, editor of Bloomberg Digital
*[How the grid will automate web design without killing the designer](http://www.fastcodesign.com/3044670/how-the-grid-will-automate-web-design-without-killing-the-designer)
133
139
*[**Foundation - A new grid**](http://zurb.com/article/1333/foundation-a-new-grid)
0 commit comments