Applied Pages: Explore.html, Family.html, Genus.html, Species.html
This code flips the card over when you hover your mouse over it. The outer perspective property adds realistic depth, while transform-style: preserve-3d lets the front and back faces rotate inside a true three-dimensional space. Hovering triggers a 180-degree Y-axis rotation on the inner container. Combined with backface-visibility: hidden, the back side reveals itself naturally as the front rotates out of view.
.contributor-flip-card,
.species-flip-card,
.family-flip-card,
.genus-flip-card {
width: 100%;
height: 560px;
perspective: 1000px;
}
.flip-card-inner {
position: relative;
width: 100%;
height: 100%;
transition: transform 0.7s;
transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner {
transform: rotateY(180deg);
}
.flip-card-front,
.flip-card-back {
position: absolute;
width: 100%;
height: 100%;
border-radius: 12px;
overflow: hidden;
backface-visibility: hidden;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.flip-card-front {
background: #FFFFFF;
}
.flip-card-back {
background: #FFFFFF;
padding: 30px;
transform: rotateY(180deg);
display: flex;
flex-direction: column;
justify-content: flex-start;
}
Applied Pages: Contribution.html, Enquiry.html
Clicking into any input box, dropdown, or text area changes its border to the theme's foliage green and casts a light green glow around it. This instantly highlights whichever field is active so users always know where they are typing.
.contribution-form input:focus,
.contribution-form select:focus,
.contribution-form textarea:focus,
.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
outline: none;
border-color: #2E7D32;
box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.10);
}