Accordion Effect with Horizontal Rules

My submission for rodeo-010. Creates an animated accordion effect with just <hr> and <p> tags and some creative CSS selectors. No JavaScript. Parts are automatically numbered using CSS counters. Try it out while enjoying some facts about bears from Wikipedia.


Bears are mammals of the family Ursidae. They are caniforms, or doglike carnivorans, with the pinnipeds being their closest living relatives.

Common characteristics of modern bears include large bodies with stocky legs, long snouts, shaggy hair, plantigrade paws with five nonretractile claws, and short tails.


Except courting individuals and mothers with their young, bears are typically solitary animals. Bears possess an excellent sense of smell and, despite their heavy build and awkward gait, are adept runners, climbers, and swimmers.

In autumn, some bear species forage much fermented fruit, which affects their behaviour. Bears den in caves and burrows; most species occupy their dens during the winter for a long period (up to 100 days) of sleep that resembles hibernation.


Unlike most other members of the Carnivora, bears have relatively undeveloped carnassial teeth, and their teeth are adapted for a diet that includes a significant amount of vegetable matter. The canine teeth are large, and the molar teeth flat and crushing. Considerable variation occurs in dental formula even within a given species.


While many people think bears are nocturnal, they are, in fact, generally diurnal, active for the most part during the day.

The belief they are nocturnal apparently comes from the habits of bears that live near humans, which engage in some nocturnal activities, such as raiding trash cans or crops while avoiding humans.

But really, bears are awesome pretty much any time of day or night.