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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

            
              <svg xmlns="http://www.w3.org/2000/svg" style="display: none">
  <defs>
    <symbol id="xTeamHire" viewBox="0 0 300 400">
<g id="X-Logo">
<path d="M119.31,322.025l-33.976,-35.446l30.78,-28.336l62.628,65.338l-4.635,4.267l-61.524,57.866l-29.241,-29.86l35.968,-33.829Z"/><path d="M186.033,258.243l-33.215,30.813l29.032,30.056l33.214,-30.813l-29.031,-30.056Z"/><path d="M186.033,324.845l-33.215,30.813l29.032,30.056l33.214,-30.813l-29.031,-30.056Z"/>
</g>
<path d="M101.862,214.923c0,0 7.552,-16.079 6,-18c-1.551,-1.922 -12.441,-12.895 -16,-39c-0.945,0.223 -29.956,-41.55 -7,-48c0.096,0.397 -21.391,-45.535 35,-83c56.392,-37.465 85.293,20.56 85,18c-0.292,-2.561 30.698,1.68 17,69c0.856,1.214 12.443,18.044 -9,46c-0.21,0.111 -5,2 -5,2c0,0 -4.498,25.26 -12,32c0.487,0.07 -4.63,19.95 6,21c10.631,1.05 14.79,5.388 22,8c7.211,2.611 41.077,14.288 51,16c9.923,1.711 -31.96,41.733 -40.939,41c-8.98,-0.734 -73.413,-92.023 -167.316,4c0.554,-0.529 -54.605,-41.844 -40.745,-45c13.861,-3.156 73.198,-17.421 76,-24Z" id="silhouette"/>
    </symbol>
  </defs>
</svg>
<div id="root"></div>
            
          
!
            
              :root{
  --color: #f63954;
}
body{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: var(--color);
}
svg{
  width: 120px;
  height: 120px;
  fill: var(--color);
}
            
          
!
            
              const Box = styled.default.div`
  width: 150px;
  padding: 20px;
  background: white;
  border-radius: 4px;
  box-shadow: rgba(0, 0, 0, .3) 0 2px 4px;
  text-align: center;
  overflow: hidden;
`;

const List = styled.default.ul`
  position: relative;
  list-style-type: none;
  margin: 0;
  padding: 0;
`;

const ListItem = styled.default.li`
  position: absolute;
  left: 0;
  right: 0;
  display: block;
  width: 130px;
  margin: 5px auto;
  padding: 10px;
  background: #bb024f;
  border-radius: 3px;
  color: white;
  opacity: 0;
  transform: translateX(-200px);
  &:first-child{
    top: 0;
  }
  &:nth-child(2){
    top: 32px;
  }
  &:nth-child(3){
    top: 64px;
  }
  &:nth-child(4){
    top: 96px;
  }
  &:last-child{
    top: 128px;
  }
`;

const Button = styled.default.button`
  display: block;
  width: 100%;
  margin: 10px 0 0;
  padding: 10px;
  border: 0;
  border-radius: 3px;
  background: linear-gradient(45deg, var(--color), #0c5e8e);
  color: white;
  text-align: center;
  cursor: pointer;
`;

class Hire extends React.Component{
  constructor(props){
    super(props);
    this.handleClick = this.handleClick.bind(this);
  }
  handleClick(){
    console.log('Yay')
    const tl = new TimelineMax();
    tl.to('button', 0.5, { y: 30, opacity: 0, visibility: 'hidden', ease: Power4.easeOut })
    .to('#box', 1, {scale: 1.5, ease: Elastic.easeOut.config(1, 0.3)})
    .to('#silhouette', 1.1, { opacity: 0 })
    .to('svg', 1.3, {y: '-90px', ease: Bounce.easeOut}, '-=1')
    .staggerTo('li', 1.4, { x: 0, y: '-90px', fontSize: '10px', opacity: 1 }, 0.2)
    .to('ul', 1.5, {scaleY: 0.9, y: '-10px' }, "-=0.5")
  }
  render(){
    return(
      <Box id="box">
        <svg>
          <use xlinkHref="#xTeamHire" />
        </svg>
        <List>
          <ListItem>JavaScript developers</ListItem>
          <ListItem>React devs</ListItem>
          <ListItem>Vue devs</ListItem>
          <ListItem>Angular devs</ListItem>
          <ListItem>NodeJS devs</ListItem>
        </List>
        <Button onClick={this.handleClick}>Hire Developers</Button>
      </Box>
      );
  }
}

ReactDOM.render(
  <Hire />
, document.getElementById('root'));
            
          
!
999px
Loading ..................

Console