Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

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.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

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.

+ add another resource


Add Packages

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.


Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <html lang="en">
<meta http-equiv="content-type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="style.css" />
<script src=""></script>


	<div class="container">
  <div class="time-of-year">
  Hover over me!
      <div class="tooltip">Using this filter allows you to view all photos that were taken in a particular month.</div>




	.container {
		width: 940px;
		height: 450px;
		background-color: #FFFFFF;
		border-radius: 3px;
		-moz-border-radius: 3px;
		-webkit-border-radius: 3px;
		border:1px solid #d1d1d1;
		margin: 0px auto

.time-of-year {
  color: #555;
  cursor: help;
  font-family: Garamond;
  font-size: 24px;
  margin: 100px 75px 10px 75px;
  padding: 15px 20px;
  position: relative;
  text-align: center;
  width: 200px;
  -webkit-transform: translateZ(0); /* webkit flicker fix */
  -webkit-font-smoothing: antialiased; /* webkit text rendering fix */

.time-of-year .tooltip {
  background: #ffffe0;
  border: 1px solid #d1d1d1;
  border-radius: 3px;
  bottom: 100%;
  font-size: 20px;
  display: block;
  left: -50px;
  opacity: 0;
  padding: 15px;
  pointer-events: none;
  position: absolute;
  width: 320px;
  z-index: 1102;
  -webkit-transform: translateY(10px);
     -moz-transform: translateY(10px);
      -ms-transform: translateY(10px);
       -o-transform: translateY(10px);
          transform: translateY(10px);
  -webkit-transition: all .7s ease-out;
     -moz-transition: all .7s ease-out;
      -ms-transition: all .7s ease-out;
       -o-transition: all .7s ease-out;
          transition: all .7s ease-out;

/* This is the grey triangle behind the yellow one that makes the border continuous */
.time-of-year .tooltip:before {
  bottom: -42px;
  content: " ";
  display: block;
  height: 20px;
  left: 161px;
  position: absolute;
  border-color: #a9a9a9 transparent transparent transparent;
  border-style: solid;
  border-width: 11px;

/* Yellow triangle */
.time-of-year .tooltip:after {
  border-left: solid transparent 10px;
  border-right: solid transparent 10px;
  border-top: solid #ffffe0 10px;
  bottom: -10px;
  content: " ";
  height: 0;
  left: 50%;
  margin-left: -13px;
  position: absolute;
  width: 0;

.time-of-year:hover .tooltip {
  opacity: 1;
  pointer-events: auto;
  -webkit-transform: translateY(0px);
     -moz-transform: translateY(0px);
      -ms-transform: translateY(0px);
       -o-transform: translateY(0px);
          transform: translateY(0px);

/* IE can just show/hide with no transition */
.lte8 .time-of-year .tooltip {
  display: none;

.lte8 .time-of-year:hover .tooltip {
  display: block;