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.

            
              <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.min.js"></script>

<div ng-app>
  <div ng-controller="contactsCtrl">
    <section class="header">
      <center><h1>Search Bar</h1></center>
      <form action="" class="cont">
        <input type="text" class="srchFld" placeholder="" ng-model="search"/>
        <button type="submit" class="srchBtn">Search</button>
        <div class="entypo-search ico"></div>
      </form>
    </section>
    <section class="content">
      <div class="contact" ng-repeat="contact in contacts | filter:search" ng-animate="{enter: 'animate-enter', leave: 'animate-leave'}">
        <div class="wrapr">
          <span class="imgWrpr"><center><img src="{{contact.img}}" alt="" /></center></span>
          <span class="contactInfo">
            <div class="name">{{contact.name}}</div>
            <div>{{contact.year}}</div>
            <div>{{contact.code}}</div>
          </span>
        </div>
        
      </div>
    </section>
  </div>
</div>

            
          
!
            
              @import "compass/css3";

@import url(https://fonts.googleapis.com/css?family=Roboto:700);
@import url(http://weloveiconfonts.com/api/?family=entypo);
@import url(https://fonts.googleapis.com/css?family=Holtwood+One+SC);
@import url(https://fonts.googleapis.com/css?family=Voces);


/* zocial */
[class*="entypo-"]:before {
  font-family: 'entypo', sans-serif;
}

*{
  box-sizing: border-box;
}

body {
  margin: 0;
  border: 0;
  padding: 0;
}

.header{
  background: #16a085;
  height: 200px;
  padding: 20px;
}

h1 { 
  font-family: 'Holtwood One SC', serif;
  color:white;
  font-size:50px;
  text-shadow: 0px 3px 0px #7f8c8d;
}

.cont {
  position: relative;
  margin:20px auto;
  width: 500px;
}

.srchFld {
  border: 0;
  border-radius:7px;
  padding: 0 17px;
  padding-right:55px;
  display:inline-block;
  float:left;
  width:380px;
  border-bottom:5px solid #bdc3c7;
  height: 60px;
  font-family: 'Roboto', sans-serif;
  color: #7f8c8d;
  font-size:19px;
  
}

.srchFld:focus {
  outline-color: rgba(white,0);
}

.srchBtn {
  border: 0;
  border-radius:7px;
  padding: 0 17px;
  background: #e74c3c;
  display:inline-block;
  float:right;
  width:99px;
  border-bottom:5px solid #c0392b;
  color:white;
  height: 60px;
  font-family: 'Roboto', sans-serif;
  color: white;
  font-size:18px;
  cursor: pointer;
}

.srchBtn:active {
  border-bottom:0px solid #c0392b;
}

.ico {
  position: absolute;
  right:135px;
  top: 13px;
  font-size:35px;
  color:#7f8c8d;
}

.contact {
  border-bottom:2px solid rgb(200,200,200);
  border-bottom-style:dashed;
  padding: 15px;
  height: 180px;
  
}

.wrapr {
  width: 600px;
  margin: 0 auto;
}

.imgWrpr {
  float:left;
  height: 150px;
  width: 150px;
  border-radius:80px;
  overflow:hidden;
  border:10px solid #eee;
}

.contact img {
  height: 150px;
  width: auto;
}

.contactInfo {
  display:inline-block;
  float:left;
  padding: 30px;
  font-size:25px;
  color:rgb(80,80,80);
  font-family: 'Voces', cursive;
  
}

.name {
  font-size:35px;
}


.animate-enter, 
.animate-leave
{ 
 @include transition (400ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all);
  position: relative;
  display: block;
} 

.animate-enter.animate-enter-active, 
.animate-leave {
  opacity: 1;
  
}

.animate-leave.animate-leave-active,
.animate-enter {
  opacity: 0;
  
}
            
          
!
            
              function contactsCtrl($scope) {

  $scope.contacts = [
    {
      name:"Sintel",
      code:"Durian",
      year:"2010",
      img:"http://www.sintel.org/wp-content/uploads/2010/03/sintel_ab_original_dark_facial.png",
    },{
      name:"Big Buck Bunny",
      code:"Peach",
      year:"2008",
      img:"https://www.crearonline.com.ar/wp-content/uploads/2010/05/big_buck_bunny.png",
    },{
      name:"Tears of steel",
      code:"Mango",
      year:"2012",
      img:"http://cf.broadsheet.ie/wp-content/uploads/2012/09/roboeye.jpg",
    },{
      name:"Elephants Dream",
      code:"Orange",
      year:"2006",
      img:"http://orange.blender.org/wp-content/themes/orange/images/media/gallery/s5_proog.jpg",
    }
  ]

}
            
          
!
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