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.
<div class="container-fluid">
<div class="horizontal">
<div class="vertical">
<h1 class="force-text-center">Sticky notes / Pinned notes as horizontal timeline - Force Framework</h1>
</div>
</div>
<div class="horizontal">
<div class="vertical">
<div class="scrolling-wrapper">
<article class="article-body first-pinned">
<section class="pinned-note">
<span class="pinit"></span>
<div class="nodes">
<div class="left-strip">
<h1 class="pinned-heading">Technical Articles by Nishant Dogra</h1>
<p class="pinned-description">Recently I observed, few of my Medium and LinkedIn articles were observed and appreciated for the good and supporting content. I contribute as the UX Designer, User Experience Research, Best practice for Front-end Development, Optimization of web apps and many more. Making the [ #UXWorkShop ] for self learning and encouraging others for best practice. <a href="http://dograsweblog.com/articles/" class="anchor-link" target="_blank">Read more</a></p>
</div>
</div>
</section>
</article>
<article class="article-body second-pinned">
<section class="pinned-note">
<span class="pinit"></span>
<div class="nodes">
<div class="left-strip">
<h1 class="pinned-heading">Technical Articles by Nishant Dogra</h1>
<p class="pinned-description">UX Research, Analysis and Strategy check-list for Agriculture based mobile application. - Currently working on an product. It’s an Android application for the farmers. Moto of our product is "How to increase the productivity with help of Technology." [...] - Published on Nov 29, 2018, 6 min read. <a href="http://dograsweblog.com/articles/" class="anchor-link" target="_blank">Read more</a></p>
</div>
</div>
</section>
</article>
<article class="article-body third-pinned">
<section class="pinned-note">
<span class="pinit"></span>
<div class="nodes">
<div class="left-strip">
<h1 class="pinned-heading">Technical Articles by Nishant Dogra</h1>
<p class="pinned-description">How up-gradation of Front-end can enhance the Performance, Accessibility, Optimization, SEO and User Experience - Document designed on the Front-end up-gradation Since Google, Yahoo, Bing etc and other world best Search Engine’s have done future development focusing Smart phone users. Web browsers gone advance, with the AI to detect User Experience [...] - Published on Jun 4, 2018, 3 min read. <a href="http://dograsweblog.com/articles/" class="anchor-link" target="_blank">Read more</a></p>
</div>
</div>
</section>
</article>
<article class="article-body fourth-pinned">
<section class="pinned-note">
<span class="pinit"></span>
<div class="nodes">
<div class="left-strip">
<h1 class="pinned-heading">Technical Articles by Nishant Dogra</h1>
<p class="pinned-description">How Image Optimization in Front-end optimization one of the key thing required for the best User Experience - FEO Front-end optimization, often known as content optimization or simply optimization. FEO is the process of fine-tuning your website to make it more browser-friendly and quicker to load. There are several ways to improve and optimize [...] - Published on May 2, 2018, 2 min read. <a href="http://dograsweblog.com/articles/" class="anchor-link" target="_blank">Read more</a></p>
</div>
</div>
</section>
</article>
<article class="article-body fifth-pinned">
<section class="pinned-note">
<span class="pinit"></span>
<div class="nodes">
<div class="left-strip">
<h1 class="pinned-heading">Technical Articles by Nishant Dogra</h1>
<p class="pinned-description">How Google Knowledge Graph improve user search experience and Brand value - Use markup on your official website to add your social profile information to a Google Knowledge panel. Knowledge panels prominently display your social profile information in some Google Search results [...] - Published on February 26, 2018, 3 min read. <a href="http://dograsweblog.com/articles/" class="anchor-link" target="_blank">Read more</a></p>
</div>
</div>
</section>
</article>
<article class="article-body sixth-pinned">
<section class="pinned-note">
<span class="pinit"></span>
<div class="nodes">
<div class="left-strip">
<h1 class="pinned-heading">Technical Articles by Nishant Dogra</h1>
<p class="pinned-description">Progressive Web Apps: new way to deliver amazing user experiences on web using Manifest and Service workers - Basically to convert the basic types of applications into the modern browser based application PWA is designed. The application type attempts to combine features offered by most modern browsers with the benefits of mobile experience. As the user progressively builds [...] - Published on April 11, 2018, 3 min read. <a href="http://dograsweblog.com/articles/" class="anchor-link" target="_blank">Read more</a></p>
</div>
</div>
</section>
</article>
</div>
</div>
</div>
</div>
body { font-family: Roboto, sans-serif;}
h1 { margin: 40px 0 20px;}
.pinned-note { position: relative; background: #f8f1c6; background: linear-gradient(#f8f1c6 50%, #f8f1c6 98%, #989898 100%); background-size: 1px 34px; border-radius: 5px; border: 1px solid #C4C296; color: #43423d; text-shadow: 0 1px 1px #ffffff; max-width: 480px; margin: 20px auto;}
.pinned-note .nodes { background: radial-gradient(#ffffff 30%, transparent 1%) 0 0, radial-gradient(rgba(0,0,0,1) 1%, transparent 35%) 0 0px; background-size: 30px 30px; background-repeat: repeat-y; margin-left: 8px;}
.pinned-note .no-nodes { background: none; margin-left: -20px;}
.pinned-note .left-strip { border-left: 3px double #989898; margin-left: 40px; padding: 10px 20px 12px 20px; outline: none;}
.pinned-heading { font-size: 20px; line-height: 32px; margin: 25px 0 10px;}
.pinned-description { font-size: 16px; line-height: 34px; margin: 10px 0; position: relative; top: -2px;}
.anchor-link { font-weight: bold; text-decoration: none;}
.scrolling-wrapper { overflow-x: scroll; overflow-y: hidden; white-space: nowrap; padding: 15px 0;}
.article-body { display: inline-block; vertical-align: top; margin: 0 20px;}
.article-body .pinned-note { display: inline-block; white-space: normal;}
.pinit {position: absolute; right: -20px; top: -15px; width: 60px; height: 60px; background: url('push-pin.svg'); background-size: auto; background-size: cover; margin-left: -30px;}
.first-pinned, .seventh-pinned { transform: rotate(2deg);}
.second-pinned, .eighth-pinned { transform: rotate(-1deg);}
.third-pinned, .ninth-pinned { transform: rotate(5deg);}
.fourth-pinned, .tenth-pinned { transform: rotate(1deg);}
.fifth-pinned, .eleventh-pinned { transform: rotate(-3deg);}
.sixth-pinned, .twelveth-pinned { transform: rotate(1deg);}
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background: #f6f6f6;
border-radius: 10px;
}
::-webkit-scrollbar-thumb {
border-radius: 10px;
background: #c6c6c6;
}
// Pinned Notes plugin - Force Framework
// Author: Force Framework
// Created Date: 26/04/2018
// Modified Date: 15/12/2023
// Website: https://letsforce.com/
// #ForceFramework
Also see: Tab Triggers