├── .editorconfig ├── .gitignore ├── CNAME ├── accordion ├── first-example │ ├── index.html │ └── styles.css ├── index.html ├── second-example │ ├── index.html │ └── styles.css └── styles.css ├── dark-mode-toggle ├── index.html ├── main.js └── styles.css ├── first-letter-selector ├── facebook-devil.png ├── floating-castle.png ├── index.html └── styles.css ├── material-design-tab ├── index.html ├── main.js └── styles.css └── text-glitch-animation ├── index.html ├── main.js └── styles.css /.editorconfig: -------------------------------------------------------------------------------- 1 | [*] 2 | indent_size = 2 -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store -------------------------------------------------------------------------------- /CNAME: -------------------------------------------------------------------------------- 1 | examples.yetanother.blog -------------------------------------------------------------------------------- /accordion/first-example/index.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |18 | An accordion is a list of headers that hide or reveal additional 19 | content when selected/opened. You may see them often on FAQ pages, 20 | where it makes it easy for users to scan the list of questions without 21 | getting distracted by answers and a lot of text, and giving them 22 | control by clicking on the questions that pertain to them. 23 |
24 |33 | There are 3 general principles that should be considered when using 34 | accordions: reducing cognitive load, increasing readability, and 35 | clarity. Accordions are most appropriate when users will only need a 36 | few specific pieces of content within a page or if you have only a 37 | small space to display a lot of content. 38 |
39 |48 | While they can make a web page easier to read, accordions should be 49 | used in moderation elements to describe situations or deliver 50 | information clearly. If users need to see most or all of the 51 | information on a page, it is better to use well-formatted text 52 | instead. 53 |
54 |19 | That year, a computer programmer in Switzerland named Tim Berners-Lee 20 | introduced the World Wide Web: an internet that was not simply a way to 21 | send files from one place to another but was itself a “web” of 22 | information that anyone on the Internet could retrieve. Berners-Lee 23 | created the Internet that we know today. 24 |
25 |26 | Since then, the internet has changed in many ways. In 1992, a group of 27 | students and researchers at the University of Illinois developed a 28 | sophisticated browser that they called Mosaic. (It later became 29 | Netscape.) Mosaic offered a user-friendly way to search the Web: It 30 | allowed users to see words and pictures on the same page for the first 31 | time and to navigate using scrollbars and clickable links. 32 |
33 |34 | That same year, Congress decided that the Web could be used for 35 | commercial purposes. As a result, companies of all kinds hurried to set 36 | up websites of their own, and e-commerce entrepreneurs began to use the 37 | internet to sell goods directly to customers. More recently, social 38 | networking sites like Facebook have become a popular way for people of 39 | all ages to stay connected. 40 |
41 |(of the world wide web)
43 |