Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                
<div class="wrapper text-center" ng-app="app" ng-controller="index">
    <div class="text-wrapper">
        <input class="text-input" type="text" ng-model="text" focus-input="showText">
        <div class="mask" ng-click="showText=true" ng-hide="showText">
          <h1>Why Do We Speak?</h1>
            <span class="text">
                {{ text }}
                <i class="fa fa-pencil"></i>
            </span>
      </div>
  </div>

    <div class="text-wrapper">
        <input class="text-input" type="text" ng-model="text2" focus-input="showText2">
        <div class="mask" ng-click="showText2=true" ng-hide="showText2">
          <h1> Of What Are We Afraid?</h1>
            <span class="text2">
                {{ text2 }}
                <i class="fa fa-pencil"></i>
            </span>
      </div>
  </div>
   <div class="text-wrapper">
        <input class="text-input" type="text" ng-model="text3" focus-input="showText3">
        <div class="mask" ng-click="showText3=true" ng-hide="showText3">
                    <h1>What have we Survived? </h1>
            <span class="text3">
                {{ text3 }}
                <i class="fa fa-pencil"></i>
            </span>
      </div>
  </div>
   <div class="text-wrapper">
        <input class="text-input" type="text" ng-model="text4" focus-input="showText4">
        <div class="mask" ng-click="showText4=true" ng-hide="showText4">
          <h1>How Do We Resist?</h1>
            <span class="text4">
                {{ text4 }}
                <i class="fa fa-pencil"></i>
            </span>
      </div>
  </div>
   <div class="text-wrapper">
        <input class="text-input" type="text" ng-model="text5" focus-input="showText5">
        <div class="mask" ng-click="showText5=true" ng-hide="showText5">
          <h1>How Are We Healing?</h1>
            <span class="text5">
                {{ text5 }}
                <i class="fa fa-pencil"></i>
            </span>
      </div>
  </div>
</div>

<!-- <div ng-app='switchDemo'>  -->
<!-- <div class="highlight">
   <div class="container" ng-controller="demoCtrl">
      <button class="btn btn-primary" ng-click="showStatus=!showStatus">Toggle Content</button>
      <p ng-show="showStatus" class="bs-callout bs-callout-danger">True: I'm here all the time!</p>
      <p ng-hide="showStatus" class="bs-callout bs-callout-warning">False: I'm also here all the time!</p>
    </div>
</div> -->
              
            
!

CSS

              
                body {
  background-color: #46494C;
  color:#DCDCDD ;
}
.highlight {
display: block;
padding: 9px 14px;
margin-bottom: 14px;
background-color: #46494C;
border: 1px solid #e1e1e8;
border-radius: 4px;
}
.text-wrapper {
    width: 400px;
    margin: 0 auto;
    margin-top: 50px;
  margin-bottom: 150px;
/*     height: 50px; */
    position: relative;
}

.text-input {
    text-align: center;
    width: 100%;
    height: 100%;
    font-size: 30px;
    padding: 5px 11px;
    border: solid 1px #ccc;
    border-radius: 3px;
}

.text-input:focus {
    outline: none;
}

.text {
    padding: 4px 12px;
    font-size: 30px;
}
.text2, .text3, .text4, .text5 {
    padding: 4px 12px;
    font-size: 30px;
}

.mask {
    text-align: center;
    cursor: text;
    line-height: 50px;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
/*     background-color: #fff; */
  background-color: #46494C;
}
/* Styles go here */
header {
  padding: 20px 40px;
}

              
            
!

JS

              
                var app = angular.module('app', []);
// app.controller('demoCtrl',["$scope", 

// function($scope) {
//     $scope.showStatus = true;
//     $scope.switchStatus = 0;
//     $scope.ifValue = true;
//     $scope.showIf = function() {
//       return $scope.ifValue;
//     };
//     $scope.hideIf = function() {
//       return !$scope.ifValue;
//     };
  
//     $scope.increment = function() {
//       $scope.switchStatus = ($scope.switchStatus === 0) ? 1 : 0;
//     }
//   // });
// }]);
app.controller('index', ["$scope", function($scope) {
  $scope.text = 'Why Do We Speak';
  $scope.showText = false;
  $scope.text2 = 'Of What Are We Afraid';
  $scope.showText2 = false;
  $scope.text3 = 'What Have We Survived';
  $scope.showText3 = false;
  $scope.text4 = 'How Do We Resist';
  $scope.showText4 = false;
  $scope.text5 = 'How Are We Healing';
  $scope.showText5 = false;

}]);



app.directive('focusInput', function() {
  return {
    link: function(scope, element, attrs) {
      scope.$watch(attrs.focusInput, function(value) {
        if (value === true) {
          element[0].focus();
        }
        element.bind('blur', function() {
          scope.$apply(attrs.focusInput);
          scope.$eval(attrs.focusInput + '=false');
        });
      });
    }
  };
});

// angular.module('switchDemo', [])

              
            
!
999px

Console