A Pen by Radulescu Vlad Alexandru

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 ©


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

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



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


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



/*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;
  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';