Modern Website Features Flashcards
1
Q
Parallax effect
A
- elements moving at different rates to create the illusion of depth (3D)
- simplest is no movement on the background while the foreground moves w/ the scrolling
- background-attachment: fixed;
2
Q
Scrollfire
A
- elements transition in as user approaches them
- track section in navigation bar as you scroll
- start w/ ‘onscroll’ listener and retrieve scroll position in the event handler
3
Q
accessibility
A
allowing people w/ disabilities or impairments to use the website
- blind users depend on screen readers to read the content of websites aloud
- deaf users depend on text transcriptions of audio/video
4
Q
responsive
A
- display nicely on any platform, device, and screen size
- websites need to look good across all different screens and platforms
5
Q
enhanced parallax
A
- requires JS
- onscroll
- retrieve current scroll position in pixels using window.scrollY: value starts at 0 from the top and increases per pixel scrolled
- linear equation: y = mx+b (m and b are parameters)
6
Q
text content
A
- have no or minimal text in images
- screen readers read text but cannot read text inside images
- keep the text organized and use proper spelling and grammar (blind users)
- have fonts clear to read or an option to change font size
7
Q
Alt text (alternate text)
A
shows up when an image doesn’t load
8
Q
Clear colors
A
- color blindness
- use crisp colors w/ high contrast
9
Q
overlaid text
A
- text overlaid on an image must be entirely high contrast
- difficult when images have many varying colors/shades
- use outline or shadows or an intermediate colored panel to split the background and foreground