A Pen by Radulescu Vlad Alexandru

Thumbnail
This awesome code was written by ptongalex, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright ptongalex ©

Technologies

  • HTML
  • CSS
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>A Pen by  Radulescu Vlad Alexandru</title>
  
  
  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  <body ng-app='myApp' ng-controller='Main'>
<div class='parent'>
  <div class='child'></div>
</div>
  <p>{{fromTop}}</p>
</body>
  <script src='https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.1/angular.min.js'></script>

  

    <script  src="js/index.js"></script>




</body>

</html>

/*Downloaded from https://www.codeseek.co/ptongalex/a-pen-by-radulescu-vlad-alexandru-qRyEGx */
.parent {
  background-color: red;
  width: 300px;
  height: 300px;
  position: relative;
  top: 100px;
}

.child {
  background-color: black;
  width: 200px;
  height: 200px;
  position:relative;
  top: 50px;
}

/*Downloaded from https://www.codeseek.co/ptongalex/a-pen-by-radulescu-vlad-alexandru-qRyEGx */
angular.module('myApp', [])
  .controller('Main', function($scope){
    $scope.fromTop = 'lol';
});

Comments