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 Skypack, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ES6 import
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.
<div id="timeline">
<div class="FadeIn">
<div class="timeline-item one">
<div class="timeline-content">
<h1>Initial Contact</h1>
<p>
Please get in touch with us about your project ideas! We encourage potential partners to provide as much information as possible but we're happy to hear about concepts even in their early stages. <button><a href="mailto:[email protected]?Subject=Enquiry" target="_top">EMAIL US</a></button>
</p>
</div>
</div>
<div class="timeline-item two">
<div class="timeline-content">
<h1>Internal Assessment</h1>
<p>
Based on the information our partners provide, we consider whether the proposed project is a good match for KDL. That means considering things like requirements, time frame and how it might fit with our overall strategy.
</p>
</div>
</div>
<div class="timeline-item three">
<div class="timeline-content">
<h1>Requirements Assessment</h1>
<p>
We'll have an in-depth discussion with you to understand your requirements. That then feeds into further internal assessment to produce a Product Quote, outlining high level requirements, our approach, and project costs.
</p>
</div>
</div>
<div class="timeline-item four">
<div class="timeline-content">
<h1>Funding Application</h1>
<p>
The Product Quote will provide the majority of the information you should need to incorporate KDL into your funding application. We're also happy to work with you to write and check technical, cost and other relevant sections before submission. </p>
<p>Of course, we'll skip this step if you already have funding available.
</p>
</div>
</div>
<div class="timeline-item five">
<div class="timeline-content">
<h1>Kick Off</h1>
<p>
If the project is funded, we'll go over the plan for working together at the very start. We use an industry-standard Agile project managment approach, which focuses on communication, collaboration and flexibility. This allows us to work with you to adapt to changing requirements.
</p>
</div>
</div>
<div class="timeline-item six">
<div class="timeline-content right">
<h1>Evolutionary Development</h1>
<p>
This is when the actual development happens. We divide the project into increments (typically 4-6 weeks), deciding at the end of the previous increment which requirements we'll focus on in the next increment. It's further sub-divided into 2 week timeboxes, keeping the development tightly focused. It includes regular testing during each increment, to catch bugs and other issues early, when they're easier to change.</p>
<p>Evolutionary Development is cyclical with Deployment, as the project moves back and forth between stages.
</p>
</div>
</div>
<div class="timeline-item seven">
<div class="timeline-content">
<h1>Deployment</h1>
<p>
After each increment, we aim to deploy some portion of the project. This may be a public deployment, or it may be a case of making the functionality available to our partners only in the first instance. <!--This incremental deployment allows us to refine the solution as the project proceeds and test regularly.</p>
<p>Deployment is cyclical with Evolutionary Development, as the project moves back and forth between stages.-->
</p>
</div>
</div>
<div class="timeline-item eight">
<div class="timeline-content right">
<h1>Release</h1>
<p>
Ahead of release we work closely with our partners to incorporate final changes and carry out final testing. At the release stage we'll normally ask you to sign a Service Level Agreement (costed in the Product Quote), detailing the provision for ongoing hosting and maintenance of your project. When everything is ready we'll agree a final release date with you, including any support needed for launch activities.
</p>
</div>
</div>
<div class="timeline-item nine">
<div class="timeline-content">
<h1>Post Project</h1>
<p>
All of our projects incorporate consideration of long-term hosting and maintenance needs. The individual project requirements are outlined in the project's Service Level Agreement, and we will contact you toward the end of this period to discuss the future of your project.
</p>
</div>
</div>
</div>
@import "https://fonts.googleapis.com/css?family=Dosis:300,400,500,600,700";
// Variables
$darkgray:#726f77;
$bg-body: #f1f1f1;
$blue: #00B9E1;
$white: #fff;
$yellow:#F5B90F;
// Mixins and Placeholders
%clearfix {
&:after, &:before {
content: '';
clear: both;
display: block;
width: 100%;
}
}
@mixin prefix($prop, $val) {
@each $prefix in '-webkit-', '-moz-', '-ms-', '' {
#{$prefix}#{$prop}: $val;
}
}
@mixin calc($prop, $val) {
@each $pre in -webkit-, -moz-, -o- {
#{$prop}: $pre + calc(#{$val});
}
#{$prop}: calc(#{$val});
}
@mixin keyframes($name) {
@-webkit-keyframes #{$name} {@content;}
@-moz-keyframes #{$name} {@content;}
@-ms-keyframes #{$name} {@content;}
@keyframes #{$name} {@content;}
}
@mixin animate($animation) {
-webkit-animation: #{$animation};
-moz-animation: #{$animation};
-ms-animation: #{$animation};
animation: #{$animation};
}
*, *:before, *:after {
box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
}
body, html {
height: 100%;
}
body {
background: $bg-body;
background-size: cover;
margin: 0;
padding: 0;
font-family: helvetica, arial, tahoma, verdana;
line-height: 20px;
font-size: 14px;
color: $darkgray;
}
img {max-width: 100%;}
a {
text-decoration: none;
}
// Timeline
#timeline {
@include prefix(transition, all 0.5s ease);
margin: 2%;
padding: 0;
position: relative;
width: 90%;
&:after {
clear: both;
content: "";
display: table;
width: 100%;
}
.timeline-item {
@extend %clearfix;
@include animate(fadein 1s linear 1 forwards);
display:block;
float:left;
margin:0;
opacity:0;
position: relative;
width:30%;
&:after{
border-top: 3px solid $blue;
padding-bottom:100%;
margin-left: 50%;
}
&:before
{
content: '';
border-bottom: 7px solid transparent;
border-left: 7px solid $yellow;
border-top: 7px solid transparent;
height: 15px;
left: 100%;
position: absolute;
top: -6px;
width: 15px;
}
&.two{
animation-delay: 0.5s;
}
&.three{
animation-delay: 1s;
&:after{
border: 3px solid $blue;
border-left: 0;
border-radius: 0 50% 50% 0;
margin-left: 50%;
}
&:before {
@include calc(left, "150% - 8px");
border-left:7px solid transparent;
border-top:7px solid $yellow;
border-right:7px solid transparent;
top: 50%;
}
}
&.four{
animation-delay: 1.5s;
float:right;
margin-right: 10%;
margin-top:-3px;
&:after{
margin-left: -50%;
}
&:before {
border-left:7px solid transparent;
border-right:7px solid $yellow;
left:0;
}
}
&.five{
animation-delay: 2s;
float:right;
margin-top:-3px;
&:after{
margin-left: -50%;
}
&:before {
border-left:7px solid transparent;
border-right:7px solid $yellow;
left:0;
}
}
&.six{
animation-delay: 2.5s;
float:right;
margin-top:-3px;
&:after{
border: 3px solid $blue;
border-left: 0;
border-radius: 50%;
border-right: 0;
margin-bottom:-3px;
margin-left:0;
}
&:before {
left:0;
margin-left:-7px;
top: 50%;
border-left:7px solid transparent;
border-right:7px solid transparent;
border-top:7px solid $yellow;
}
}
&.seven{
animation-delay: 3s;
}
&.eight{
animation-delay: 3.5s;
}
&.nine{
animation-delay: 4s;
&:after{
border: none;
}
&:before{
border: none;
}
}
}
.timeline-content {
@include prefix(transition, all .5s ease);
padding:5%;
padding-top:10%;
position:absolute;
text-align: justify;
width: 100%;
h1 {
color: $darkgray;
font:{
family: "Dosis", arial, tahoma, verdana;
size:1.3rem;
weight: 500;
}
margin: 10px 0 0 50%;
line-height:1.5rem;
padding:0;
text-align:left;
text-transform:uppercase;
width: 100%;
}
p{
margin-left:50%;
padding-right:10%;
text-align:justify;
width:100%;
}
&:before {
@include prefix(border-radius, 50%);
background-color: $white;
border:3px solid $blue;
content: '';
height: 15px;
left: 50%;
position: absolute;
top: -5px;
width: 15px;
}
}
button{
background:$blue;
border:0;
color:$white;
display:block;
margin-top:10px;
padding:5px 15px;
width:100%;
a{
color:$white;
font-family: "Dosis", arial, tahoma, verdana;
font-size:1rem;
text-decoration: none;
}
}
}
@include keyframes (fadein) {
0% { opacity: 0; }
100% { opacity: 1; }
}
@media screen and (max-width: 768px) {
#timeline {
width:95%;
.timeline-item {
&.one,
&.two,
&.three,
&.four,
&.five,
&.seven,
&.eight,
&.nine{
display:block;
float:left;
width:100%;
&:after{
border: none;
border-left: 3px solid $blue;
margin-left: 1px;
padding-bottom:40%;
}
&:before {
content: '';
border-left:7px solid transparent;
border-right:7px solid transparent;
border-top:7px solid $yellow;
height: 15px;
left: -5px;
position: absolute;
top: 50%;
width: 15px;
}
&:last-child{
&:after{
border: none;
}
&:before{
border: none;
}
}
}
&.six{
width:100%;
&:after{
border-right: 0;
border-left: 0;
margin-left:-20%;
padding-bottom: 40%;
width: 40%;
}
&:before {
border:none;
}
}
}
.timeline-content {
width: 100%;
//background: rgba(255,255,255,0.7);
@include prefix(transition, all .3s ease);
padding-right:0;
padding-top:0;
position:absolute;
text-align: justify;
z-index:9;
h1 {
margin: -7px 0;
}
p{
margin-left:0;
padding:0;
width:100%;
}
&:before {
left: -5px;
top: -5px;
}
}
}
}
Also see: Tab Triggers