cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

            
              <html>
<head>
  <script type="text/javascript" src="card.js"></script>
  <link rel="stylesheet" href="card.css">

</head>

<body id="people">
  <div id='sumedhasood' class='person flip-container'>
    <div class='flipper'>
      <div class='front card'>
        <h2>sumedha sood</h2>
        <div class='headshot'></div>
        <div id="about" class="spinner">
          <span class="text-content">  
            <span>echo "I am sumedha sood";<br/></span>
            <span>echo "I come from India";<br/></span>
            <span>echo "I love eating noodles";</span>
          </span>
        </div>
        <i class="fa fa-undo flip"></i>
      </div>
      <div class='back card'>
        <ul>
          <li><i class="fa fa-github"></i><a href='https://github.com/kanyewest'>sumedha</a>
          </li>
          <li><i class="fa fa-facebook"></i><a href='https://www.facebook.com/sumedha.sood.1'>facebook</a>
          </li>
          <li><i class="fa fa-linkedin"></i><a href='https://www.linkedin.com/in/sumedha-sood-1353873a?trk=nav_responsive_tab_profile_pic'>linkedin</a>
          </li>
          <li><i class="fa fa-envelope"></i><a href='sood.sumedha15@gmail.com'>email</a>
          </li>
        </ul>
        <i class="fa fa-undo flip"></i>
      </div>
    </div>
  </div>
</body>

</html>
            
          
!
            
              /* TEXT THAT IS GREYED OUT INDICATED A COMMENT IN THE CODE. PLEASE READ THE COMMENTS AS, IN THIS TEMPLATE, THEY ARE NOTES TO YOU ABOUT HOW TO ALTER THIS /PEOPLE CARD IN A WAY THAT WILL REMAIN COMPATIBLE WITH THE COURSE WEBSITE! */

/* Be sure to replace the '#kanyewest' selector with one referring to your partner's name/ID (e.g. '#yourpartner') and add CSS effects for your card here */

#sumedhasood .headshot {
  background-image: url(https://dolphia85.github.io/sumedha.jpg);
}


/*********************************
***Don't change below this line*** **********************************/
html {
    font-size: 1.375em;
}
@font-face {
    font-family: 'Latin Modern Roman';
    src: url('https://s3.amazonaws.com/dgmde15githubio/lmroman10-regular-webfont.eot');
    src: url('https://s3.amazonaws.com/dgmde15githubio/lmroman10-regular-webfont.eot?#iefix') format('embedded-opentype'), url('https://s3.amazonaws.com/dgmde15githubio/lmroman10-regular-webfont.woff') format('woff'), url('https://s3.amazonaws.com/dgmde15githubio/lmroman10-regular-webfont.ttf') format('truetype'), url('https://s3.amazonaws.com/dgmde15githubio/lmroman10-regular-webfont.svg#latin_modern_roman10_regular') format('svg');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Latin Modern Roman', Georgia, 'Times New Roman', Times, serif;
    color: #333;
}

.person {
    width: calc((70ex - 2*1em)/3);
    height: calc((70ex - 2*1em)/3);
    margin-right: 1em;
    margin-bottom: 1em;
    float: left;
}
.person:first-child, .person:nth-child(3n+1) {
    margin-left: 0;
}
.person:nth-child(3n) {
    margin-right: 0;
}
#people h2 {
    text-align: center;
    text-transform: lowercase;
    font-family: 'Latin Modern Roman', Georgia, 'Times New Roman', Times, serif;
    font-variant: small-caps;
    line-height: 1em;
    font-size: 1.25em;
    margin-bottom: 0.25em;
    width: 100%;
    margin: 0;
    padding: 0;
}
.front, .back {
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 0.5em #000;
    border-radius: 0.5em;
}
.card i.flip {
    position: absolute;
    top: 85%;
}
/**********************/
/* front of the cards */

.front.card {
    background-color: #aaa;
    z-index: 2;
    transform: rotateY(0deg);
}
.person .headshot {
    box-shadow: inset 0 0 0.625em #000;
    width: 6.5em;
    height: 6.5em;
    background-size: cover;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    top: 3.75%;
}
/*********************/
/* back of the cards */

.back.card {
    background-color: #ccc;
    transform: rotateY(180deg);
}
.back ul {
    padding:0;
}
.back li {
    list-style-type: none;
    padding-left: 1ex;
}
.back li i.fa {
    margin-right: 1ex;
}
#people .back {
    padding: 0.25em;
}
#people .back li {
    margin-bottom: 0.5em;
    margin-left: 0;
    line-height: 0.75em;
}
#people .back li a {
    font-family: 'Inconsolata', monospace;
    font-size: 0.875em;
}
/***********************************/
/* Flipping behavior for the cards */

i.flip {
    cursor: pointer;
    position: relative;
    top: 5px;
    left: calc((70ex - 2*1em)/3 - 4.25em);
}
.flip-container {
    perspective: 1000;
}
.flip-container.flipped .flipper {
    transform: rotateY(180deg);
}
.flipper {
    transition: 0.6s;
    transform-style: preserve-3d;
    position: relative;
    width: 100%;
    height: 100%;
}
.spinner {
    /* hide width
        width: 50%;
    */
    height: 200px;

    transition: 1s; /* This is where the action happens: it tells CSS to animate any changes in the CSS styling of these elements over one second*/

    /* Setting some of the text's styling to make it fill up the card */
    /*font-family: "Courier New", monospace;*/ /* Set a font, with a fallback */
    /*text-transform: uppercase;*/ /* capitalize everything */
    /*font-size: 4.5em;
    line-height: calc(500px/4);*/ /* Since we set the height to 500px, we can make the line height 1/4 to fill up four lines */
    text-align: left;
    /*z-index: 100;*/
    color: rgba(0,0,0,0);
    background-color: none;
}
.spinner:hover {
    /*transform: rotate(180deg);*/
    transition: 1s cubic-bezier(.25,.1,.3,1.5) transform;
    transform-origin: 1.4em -.4em;
    transform: translateY(100px);
    transform: scale(10,10,10);
    color: rgba(70%,10%,10%,.9);
	text-shadow: 0 1px 1px hsla(0,0%,100%,0.8);

	width: 100%;
    /*z-index: 10;*/
}
.spinner p {
    color:rgba(0,0,0,0);

}
#about {
    width:100%;
    height:200px;
    font-size: 1em;
    top:10px;
    left:10px;
    position: absolute;
    width: 200px;
    /*line-height:10px;*/
    /*border:1px solid red;*/
}
.text-content {
	font-family: 'Baskerville, Palatino, serif';
	font-weight: bold;
	font-size: 15px;

}
            
          
!
            
              
window.addEventListener('load', function() {
  var myCard = document.querySelector('#kanyewest');
  var flipButtons = Array.prototype.slice.call(myCard.querySelectorAll('i.flip'));
  flipButtons.forEach(function(button) {
    button.addEventListener('click', function() {
      myCard.classList.toggle('flipped');
    });
  });
});
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console