HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<html>
<head>
</head>
<div class="container-fluid">
<div class="row">
<div class="col-sm-12 toppart">
<p>BIO <span class="health">HEALTH</span></p>
</div>
</div>
<div class="row">
<div class="col-sm-12 slogan">
<p> TRAINING SUPERHEROES SINCE 2013 </p>
</div>
</div>
<div class="row">
<div class="col-sm-6 whatwedo">
<p class="whitetext slightlybigger"> Too often our health must take the back seat for what really is important, it is only when you lose your health that you realise how important it is. We are in the business of getting people's health back and teaching them how to stay healthy.
</p>
<br>
<p class="whitetext">Bio Health houses 4 Biokineticists with over 20 years combined experience. Biokinetics is comprised of orthopaedic rehabilitation (strengthening of muscles to protect joints during both sport and activities of daily living), chronic disease management
(prescription and monitoring of individualised cardiovascular exercise) and total wellness (lifestyle and stress management). Recognised by and registered with the HPCSA (Health Professions council of South Africa), Biokinetics is the field
of specialised exercise therapy which functions in alliance to both the health and medical industries .
</div>
<div class="col-sm-6 wwdpic">
<img class="img-responsive " src="http://www.kaylainthecity.com/wp-content/uploads/gym.jpg" alt="The Elevation Group Logo" />
</div>
</div>
<div>
<div class="row whiteback">
<div class="whenyouvisit slogan">
<p>When you visit our premises you might find the following:</p>
</div>
<div class="col-sm-3 somepad">
<div class=" flitskaart whitetext">
<p class="ptext"><i class=" fa fa-4x fa-heartbeat"></i></p>
</div>
</div>
<div class="col-sm-3 somepad">
<div class=" flitskaart1 whitetext">
<p class="ptext1"><i class=" fa fa-5x fa-wheelchair"></i></p>
</div>
</div>
<div class="col-sm-3 somepad">
<div class=" flitskaart2 whitetext">
<p class="ptext2"><i class=" fa fa-5x fa-stethoscope"></i></p>
</div>
</div>
<div class="col-sm-3 somepad">
<div class=" flitskaart3 whitetext">
<p class="ptext3"><i class=" fa fa-5x fa-user-md"></i></p>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div>
<p class="sloganadj">Click below to learn more about the Biokineticists</p>
</div>
<div class="col-sm-3">
<div class="circle-container">
<div class="outer-ring"></div>
<!-- Used for more of a gyroscope type effect
<div class="outer-outer-ring"></div>
-->
<div class="circle">
<div class="front">
<p>ANSHIN</p>
</div>
<div class="back">
<i class=" back-logo fa fa-5x fa-user"></i>
</div>
</div>
</div>
</div>
<div class="col-sm-3">
<div class="circle-container">
<div class="outer-ring"></div>
<!-- Used for more of a gyroscope type effect
<div class="outer-outer-ring"></div>
-->
<div class="circle">
<div class="front">
<p>WERNER</p>
</div>
<div class="back">
<i class=" back-logo fa fa-5x fa-user"></i>
</div>
</div>
</div>
</div>
<div class="col-sm-3">
<div class="circle-container">
<div class="outer-ring"></div>
<!-- Used for more of a gyroscope type effect
<div class="outer-outer-ring"></div>
-->
<div class="circle">
<div class="front">
<p>ERNA</p>
</div>
<div class="back">
<i class=" back-logo fa fa-5x fa-user"></i>
</div>
</div>
</div>
</div>
<div class="col-sm-3">
<div class="circle-container">
<div class="outer-ring"></div>
<!-- Used for more of a gyroscope type effect
<div class="outer-outer-ring"></div>
-->
<div class="circle">
<div class="front">
<p>JONEL</p>
</div>
<div class="back">
<i class=" back-logo fa fa-5x fa-user"></i>
</div>
</div>
</div>
</div>
</div>
<div class="contactvorm row whiteback somepad">
<div class="col-sm-4 cabin whiteback slightlybigger ">
<p><i class="fa fa-2x fa-envelope"></i> info@bio-health.co.za</p>
</div>
<div class="col-sm-4 cabin whiteback slightlybigger ">
<p><i class="fa fa-2x fa-phone"></i> +(27) 83 656 5848</p>
</div>
<div class="col-sm-4 cabin whiteback slightlybigger ">
<p><i class="fa fa-2x fa-map-marker"></i> Abbeydale House,<br>4 Queenstreet<br>
Durbanville</p>
</div>
</div>
</div>
</div>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</html>
@import url(https://fonts.googleapis.com/css?family=Cabin:700);
body {
padding-top: 2em;
background-color: #315E8D;
}
.circle-container {
position: relative;
perspective: 1000;
margin: 0 auto;
}
.circle-container:hover .circle {
transform: rotate3d(45, 45, 0, 180deg);
}
.circle-container:hover .outer-ring {
transform: rotate3d(45, 0, 0, 180deg);
}
.circle-container:hover .outer-outer-ring {
transform: rotate3d(0, 45, 0, 180deg);
}
.circle-container, .front, .back {
width: 175px;
height: 175px;
background-color: rgba(0,0,0,0);
margin-bottom: 2em;
}
.circle, .outer-ring, .outer-outer-ring {
transition: 0.5s;
transform-style: preserve-3d;
transition-timing-function: cubic-bezier(0.785, 0.135, 0.150, 0.860);
}
.circle {
position: relative;
width: 175px;
height: 175px;
margin: 0 auto;
}
.front, .back {
border-radius: 50%;
box-shadow: 0px 0px 20px rgba(0,0,0,0.4);
backface-visibility: hidden;
position: absolute;
top: 0;
left: 0;
}
.front {
background-color: #fff;
z-index: 2;
}
.front p {
margin-top: 1.2em;
font-family: cabin, sans-serif;
font-weight: 700;
font-size: 3em;
text-align: center;
color: #315E8D;
}
.back {
transform: rotate3d(45,45,0,180deg);
background-color: #fff;
}
.back-logo {
width: 60%;
display: block;
margin: 0.7em auto;
}
.outer-ring {
position: absolute;
top: -10px;
left: -10px;
border-radius: 50%;
border: 2px solid #fff;
width: 195px;
height: 195px;
background-color: rgba(255,255,255,0);
box-shadow: 0px 0px 20px rgba(0,0,0,0.4);
}
.outer-outer-ring {
position: absolute;
top: -20px;
left: -20px;
border-radius: 50%;
border: 2px solid #fff;
width: 211px;
height: 211px;
background-color: rgba(255,255,255,0);
box-shadow: 0px 0px 20px rgba(0,0,0,0.4);
}
.toppart {
text-align: center;
background-color: white;
margin-bottom: 0.1em;
font-family: cabin, sans-serif;
color: #598DC5;
font-weight: 700;
font-size: 5em;
}
.slogan {
text-align: center;
background-color: white;
margin-bottom: 2em;
font-family: cabin, sans-serif;
color: #5E7082;
font-weight: 700;
font-size: 2em;
}
.sloganadj {
text-align: center;
margin-bottom: 2em;
font-family: cabin, sans-serif;
color: white;
font-weight: 700;
font-size: 2em;
padding-top: 25px;
padding-right:10px;
padding-left:10px;
}
.health{
color: #5E7082;
}
.row {
text-align: center;
}
.whitetext {
color : white;
font-family: cabin, sans-serif;
}
.slightlybigger {
font-size: 1.5em;
}
.whiteback{
background-color: white;
}
.whenyouvisit {
padding-top: 25px;
}
/*flipcard start*/
.flitskaart {
background-color: #315E8D;
height: 150px;
width: 150px;
margin: auto;
border-radius: 20px;
}
.flitskaart1 {
background-color: #315E8D;
height: 150px;
width: 150px;
margin: auto;
border-radius: 20px;
}
.flitskaart2 {
background-color: #315E8D;
height: 150px;
width: 150px;
margin: auto;
border-radius: 20px;
}
.flitskaart3 {
background-color: #315E8D;
height: 150px;
width: 150px;
margin: auto;
border-radius: 20px;
}
.ptext{
font-size: 1.5em;
margin: auto;
position: relative;
top: 50%;
transform: translateY(-50%);
padding-left: 5px;
padding-right: 5px;
}
.ptext1{
font-size: 1.5em;
margin: auto;
position: relative;
top: 50%;
transform: translateY(-50%);
padding-left: 5px;
padding-right: 5px;
}
.ptext2{
font-size: 1.5em;
margin: auto;
position: relative;
top: 50%;
transform: translateY(-50%);
padding-left: 5px;
padding-right: 5px;
}
.ptext3{
font-size: 1.5em;
margin: auto;
position: relative;
top: 50%;
transform: translateY(-50%);
padding-left: 5px;
padding-right: 5px;
}
.somepad{
padding: 30px;
}
/*flipcard end*/
/*kontak vorm*/
.cabin {
font-family: cabin, sans-serif;
}
/*kontak vorm*/
$(document).ready(function(){
var infoBlock = false;
$(".flitskaart").click(function(){
if (!infoBlock) {
var div = $(".flitskaart");
div.animate({height: '300px', opacity: '0.4'}, "slow");
div.animate({width: '200px', opacity: '0.8'}, "slow");
$(".ptext").text("Training of superheroes..... although they prefer we use the term functional and high performance training.");
infoBlock = true;
var div = $(".flitskaart1");
div.animate({height: '150px', opacity: '0.4'}, "slow");
div.animate({width: '150px', opacity: '0.8'}, "slow");
$(".ptext1").text("");
$(".ptext1").prepend('<i class=" fa fa-5x fa-wheelchair"></i>');
infoBlock1 = false;
var div = $(".flitskaart2");
div.animate({height: '150px', opacity: '0.4'}, "slow");
div.animate({width: '150px', opacity: '0.8'}, "slow");
$(".ptext2").text("");
$(".ptext2").prepend('<i class="fa fa-5x fa-stethoscope"></i>');
infoBlock2 = false;
var div = $(".flitskaart3");
div.animate({height: '150px', opacity: '0.4'}, "slow");
div.animate({width: '150px', opacity: '0.8'}, "slow");
$(".ptext3").text("");
$(".ptext3").prepend('<i class="fa fa-5x fa-user-md"></i>');
infoBlock3 = false;
}
else {
var div = $(".flitskaart");
div.animate({height: '150px', opacity: '0.4'}, "slow");
div.animate({width: '150px', opacity: '0.8'}, "slow");
$(".ptext").text("");
$(".ptext").prepend('<i class=" fa fa-4x fa-heartbeat"></i>');
infoBlock = false;
}
});
var infoBlock1 = false;
$(".flitskaart1").click(function(){
if (!infoBlock1) {
var div = $(".flitskaart1");
div.animate({height: '400px', opacity: '0.4'}, "slow");
div.animate({width: '200px', opacity: '0.8'}, "slow");
$(".ptext1").text("Orthopeadic rehabilitation... This is when we give specific exercises to someone with back pain or knee pain etc. so they can get back to their normal lives and be awesome.");
infoBlock1 = true;
var div = $(".flitskaart2");
div.animate({height: '150px', opacity: '0.4'}, "slow");
div.animate({width: '150px', opacity: '0.8'}, "slow");
$(".ptext2").text("");
$(".ptext2").prepend('<i class="fa fa-5x fa-stethoscope"></i>');
infoBlock2 = false;
var div = $(".flitskaart3");
div.animate({height: '150px', opacity: '0.4'}, "slow");
div.animate({width: '150px', opacity: '0.8'}, "slow");
$(".ptext3").text("");
$(".ptext3").prepend('<i class="fa fa-5x fa-user-md"></i>');
infoBlock3 = false;
var div = $(".flitskaart");
div.animate({height: '150px', opacity: '0.4'}, "slow");
div.animate({width: '150px', opacity: '0.8'}, "slow");
$(".ptext").text("");
$(".ptext").prepend('<i class=" fa fa-4x fa-heartbeat"></i>');
infoBlock = false;
}
else {
var div = $(".flitskaart1");
div.animate({height: '150px', opacity: '0.4'}, "slow");
div.animate({width: '150px', opacity: '0.8'}, "slow");
$(".ptext1").text("");
$(".ptext1").prepend('<i class=" fa fa-5x fa-wheelchair"></i>');
infoBlock1 = false;
}
});
var infoBlock2 = false;
$(".flitskaart2").click(function(){
if (!infoBlock2) {
var div = $(".flitskaart2");
div.animate({height: '400px', opacity: '0.4'}, "slow");
div.animate({width: '200px', opacity: '0.8'}, "slow");
$(".ptext2").text("Chronic disease does not mean the end of the world, it just means that you are playing life on hard mode. We can give you some expert exercises to get you ready for the challenge.");
infoBlock2 = true;
var div = $(".flitskaart1");
div.animate({height: '150px', opacity: '0.4'}, "slow");
div.animate({width: '150px', opacity: '0.8'}, "slow");
$(".ptext1").text("");
$(".ptext1").prepend('<i class=" fa fa-5x fa-wheelchair"></i>');
infoBlock1 = false;
var div = $(".flitskaart3");
div.animate({height: '150px', opacity: '0.4'}, "slow");
div.animate({width: '150px', opacity: '0.8'}, "slow");
$(".ptext3").text("");
$(".ptext3").prepend('<i class="fa fa-5x fa-user-md"></i>');
infoBlock3 = false;
var div = $(".flitskaart");
div.animate({height: '150px', opacity: '0.4'}, "slow");
div.animate({width: '150px', opacity: '0.8'}, "slow");
$(".ptext").text("");
$(".ptext").prepend('<i class=" fa fa-4x fa-heartbeat"></i>');
infoBlock = false;
}
else {
var div = $(".flitskaart2");
div.animate({height: '150px', opacity: '0.4'}, "slow");
div.animate({width: '150px', opacity: '0.8'}, "slow");
$(".ptext2").text("");
$(".ptext2").prepend('<i class="fa fa-5x fa-stethoscope"></i>');
infoBlock2 = false;
}
});
var infoBlock3 = false;
$(".flitskaart3").click(function(){
if (!infoBlock3) {
var div = $(".flitskaart3");
div.animate({height: '400px', opacity: '0.4'}, "slow");
div.animate({width: '180px', opacity: '0.8'}, "slow");
$(".ptext3").text("We have studied the posture, body compositions and running styles of the top athletes in South Africa. We use this information to analyse our client and provide useful advice and expert exercises.");
infoBlock3 = true;
var div = $(".flitskaart1");
div.animate({height: '150px', opacity: '0.4'}, "slow");
div.animate({width: '150px', opacity: '0.8'}, "slow");
$(".ptext1").text("");
$(".ptext1").prepend('<i class=" fa fa-5x fa-wheelchair"></i>');
infoBlock1 = false;
var div = $(".flitskaart2");
div.animate({height: '150px', opacity: '0.4'}, "slow");
div.animate({width: '150px', opacity: '0.8'}, "slow");
$(".ptext2").text("");
$(".ptext2").prepend('<i class="fa fa-5x fa-stethoscope"></i>');
infoBlock2 = false;
var div = $(".flitskaart");
div.animate({height: '150px', opacity: '0.4'}, "slow");
div.animate({width: '150px', opacity: '0.8'}, "slow");
$(".ptext").text("");
$(".ptext").prepend('<i class=" fa fa-4x fa-heartbeat"></i>');
infoBlock = false;
}
else {
var div = $(".flitskaart3");
div.animate({height: '150px', opacity: '0.4'}, "slow");
div.animate({width: '150px', opacity: '0.8'}, "slow");
$(".ptext3").text("");
$(".ptext3").prepend('<i class="fa fa-5x fa-user-md"></i>');
infoBlock3 = false;
}
});
});
Also see: Tab Triggers