Chapter 7: 6. Loopy Tricks
Today we're going to cover the most advanced techniques for doing nothing. Yes, you heard right. Advanced techniques for doing nothing.
First, let's talk about the art of infinite scrolling. You see, the key is to just keep scrolling. Never stop. Never look back.
- 7.ประก Infinite Scrolling
- 7.2. Cascading Style
- 7.3. Looping Through HTML Loops
- 7.4. Animation Sauce
- 7.5. Transitions of Despair
- 7.6. Looping Through HTML CSS Tricks
Now that we've covered the basics of infinite scrolling, let's move on to more exotic techniques. Like... like... uh, looping. Yes, looping. It's like infinite scrolling, but with more loops.
Here's a simple example of a loop in JavaScript:
var loops = 0;
while (loops < 100) {
console.log(loops);
loops++;
}
And here's how you can use it in CSS to create an infinite loop of nothing:
.looping {
background:ประก #f00;
background: linear-gradient(to right, #f00, #0f0, #00f);
background: linear-gradient(to right, #0f0, #00f, #f00);
/* ... */
}
And don't forget, you can always add more loops to your CSS with the animation-iteration-count property.
Now, if you're feeling adventurous, you can try your hand at creating your own looping HTML CSS tricks. Just remember, the key is to just keep looping.
Go ahead, give it a try. See you in the next chapter... or not.
Or maybe just keep scrolling. That's the spirit.