Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's 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 it's URL and the proper URL extention.

+ 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.


Save Automatically?

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.


                <h1>CSS ToolTip Smooth Animation </h1>
<!--    con = The Container for items -->
    <div class="con">
      <!-- Left tooltip -->
    <div class="con-tooltip left">
      <p> Left </p>
      <div class="tooltip ">


      <!-- Top tooltip-->
      <div class="con-tooltip top">
        <p> Top </p>
        <div class="tooltip ">
      <!-- Bottom tooltip-->
      <div class="con-tooltip bottom">
        <p> bottom </p>
        <div class="tooltip ">

      <!-- Right tooltip-->
    <div class="con-tooltip right">
      <p> Right </p>
      <div class="tooltip ">
      <!--      End con = Container-->

    <h3> Omar Dsoky </h3>


                /* Start Fonts from Google Fonts */
/*Google Fonts*/

@import url('|Cantarell|Comfortaa|Khand|Russo+One|Ubuntu');

/*End Fonts*/

/* Start Body */

body {
/*   background: #EEE; */
  	background: url("");
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #444;
  font-family: 'Comfortaa', cursive;
  text-align: center;
  font: 16px;


/* End Body */

  margin-bottom: 7%;

/*tooltip Box*/
.con-tooltip {

  position: relative;
  background: #F2D1C9;
  border-radius: 9px;
  padding: 0 20px;
  margin: 10px;
  display: inline-block;
  transition: all 0.3s ease-in-out;
  cursor: default;


/*tooltip */
.tooltip {
  visibility: hidden;
  z-index: 1;
  opacity: .40;
  width: 100%;
  padding: 0px 20px;

  background: #333;
  color: #E086D3;
  position: absolute;
  left: -25%;

  border-radius: 9px;
  font: 16px;

  transform: translateY(9px);
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 3px rgba(56, 54, 54, 0.86);

/* tooltip  after*/
.tooltip::after {
  content: " ";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 12.5px 0 12.5px;
  border-color: #333 transparent transparent transparent;

  position: absolute;
  left: 40%;


.con-tooltip:hover .tooltip{
  visibility: visible;
  transform: translateY(-10px);
  opacity: 1;
    transition: .3s linear;
  animation: odsoky 1s ease-in-out infinite  alternate;

@keyframes odsoky {
    transform: translateY(6px);	

    transform: translateY(1px);	


/*hover ToolTip*/
.left:hover {transform: translateX(-6px); }
.top:hover {transform: translateY(-6px);  }
.bottom:hover {transform: translateY(6px);}
.right:hover {transform: translateX(6px); }


.left .tooltip{ top:-20%; left:-170%; }

.left .tooltip::after{
  transform: rotate(-90deg);


.bottom .tooltip { top:115%; left:-20%; }

.bottom .tooltip::after{
  transform: rotate(180deg);


.right .tooltip { top:-20%; left:115%; }

.right .tooltip::after{
  transform: rotate(90deg);

h3 {
    background: #333;
    color: #E086D3;
    padding: 10px 20px;
    border-radius: 56px;
    width: 8em;
    margin: 20% auto 1% auto;