<section class="content">
<h1>
Cryptozoology
</h1>
<p>
Cryptozoology is a <a class="grow" href="https://en.wikipedia.org/wiki/Pseudoscience">pseudoscience</a> involving the search for creatures whose existence has not been proven due to lack of evidence. The animals cryptozoologists study are referred to as cryptids by cryptozoologists. This includes living examples of creatures that are otherwise considered extinct, such as non-avian dinosaurs; animals whose existence lacks physical evidence but which appear in folklore, such as Bigfoot and <a class="magic-btn" href="https://en.wikipedia.org/wiki/Chupacabra">chupacabras;</a> and wild animals dramatically outside their normal geographic ranges, such as phantom cats.
</p>
<p>
Cryptozoology is not a recognized branch of <a class="highlight" href="https://en.wikipedia.org/wiki/Zoology">zoology</a> nor a discipline of science. It is an example of pseudoscience because it relies heavily upon anecdotal evidence, stories, and alleged sightings. While cryptozoology takes a pseudoscientific approach to creatures and beings from the folklore record, the academic study of folklore is <a class="swipe" href="https://en.wikipedia.org/wiki/Folkloristics">folkloristics</a>.
</p>
</section>
* {
margin: 0;
}
body {
font-family: 'Open Sans';
width: 100%;
height: 100vh;
}
.content {
margin-top: 6em;
max-width: 600px;
margin-left: auto;
margin-right: auto;
padding-left: 3em;
padding-right: 3em;
}
h1 {
font-family: 'Merriweather';
text-align: center;
flex: none;
word-break: break-word;
font-size: 3em;
}
p {
line-height: 1.8;
& + p {
margin-top: 2em;
}
}
a {
text-decoration: none;
color: inherit;
position: relative;
cursor: pointer;
// grow hover effect - grows outwards from middle
&.grow::after {
content: ' ';
position: absolute;
top: 100%;
left: 25%;
width: 50%;
height: 1px;
border-bottom: 1px solid tomato;
transition: 0.4s;
}
&.grow:hover::after {
width: 100%;
left: 0;
}
// highlight hover effect - bottom-to-top
&.highlight::after {
content: ' ';
position: absolute;
z-index: -1;
top: 100%;
left: -2px;
padding: 0 2px;
width: calc(100% + 2px);
height: 1px;
border-bottom: 1px solid tomato;
transition: 0.4s;
}
&.highlight:hover::after {
top: 0;
height: 1.5em;
background-color: rgba(tomato, 0.5);
border-color: transparent;
}
// swipe hover effect - left-to-right
&.swipe::before {
content: ' ';
position: absolute;
z-index: -1;
top: 100%;
left: -2px;
padding: 0 2px;
width: calc(100% + 2px);
height: 1px;
border-bottom: 1px solid tomato;
transition: 0.4s;
}
&.swipe::after {
content: ' ';
position: absolute;
z-index: -1;
top: 0;
left: -2px;
padding: 0 2px;
width: 1px;
height: 1.5em;
transition: 0.4s;
}
&.swipe:hover::after {
width: 100%;
background-color: rgba(tomato, 0.75);
}
// magic button hover effect - appears and scales from bottom
&.magic-btn::before {
content: ' ';
position: absolute;
z-index: -1;
bottom: 0;
left: -2px;
padding: 0 2px;
width: calc(100% + 2px);
height: 1px;
border-bottom: 1px solid tomato;
transition: 0.4s;
}
&.magic-btn::after {
content: ' ';
position: absolute;
z-index: -1;
bottom: 0;
left: calc(50% - 4px);
padding: 0 2px;
width: 0;
height: 0;
border: 1px solid transparent;
transition: 0.4s;
}
&.magic-btn:hover::before {
border-color: transparent;
}
&.magic-btn:hover::after {
width: 100%;
height: 1.25em;
left: -1em;
bottom: -0.35em;
padding: 0.5em 1em;
border-color: tomato;
background-color: tomato;
border-radius: 2.5em;
}
&.magic-btn {
display: inline-block;
transition: 0.3s;
transition-delay: 0s;
transform: scale(1);
}
&.magic-btn:hover {
color: #fff;
transform: scale(1.4);
transition-delay: 0.11s;
}
}
View Compiled
// ---------------------------------------- \\
// Anchor Hover Effects for Body Copy \\
// -------------------------------------------- \\
// 1. Pseudoscience uses the ::after element with a transition set on the position and width of the pseudo element.
// 2. Chupacabras uses both the ::before and ::after pseudo elements. One to form the underline, and the other to transform into a magical button while the <a> tag itself scales on hover.
// 3. Zoology uses an ::after element with a transition set on the height, background colour, and position.
// 4. Folkloristics uses both the ::before and ::after pseudo elements. The first to form the underline and the second positioned on the left, while transitioning the width on :hover.
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.