Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Script> Box:
- $("#button1").click(function() {
- $('.transform').toggleClass('transform-active');
- });
- $("#button2").click(function() {
- $('.transform2').toggleClass('transform-active2');
- });
- <style> box:
- body {
- background-color: #fff;
- background-image: url('http://i.picpar.com/fKLd.png');
- background-position: fixed;
- background-size: contain;
- background-repeat:no-repeat;
- background-position: center top;
- background-attachment: fixed;
- font-family: ;
- color: #7c7c7c;
- text-shadow:0px 0px 3px #000;
- }
- .box {
- background: #000;
- font-family:'Roboto Mono', monospace;
- font-variant: small-caps;
- bottom: 50%;
- right: 69.5%;
- font-size:12px;
- color: #fcfcfc;
- height: 0px;
- width: 0px;
- letter-spacing: 0px;
- overflow-y:auto;
- position: absolute;
- line-height: 10px;
- padding: 1px;
- margin: 1px;
- border: 1px solid rgba(255,255,255,.32);
- outline: 1px solid rgba(255,255,255,.5);
- outline-offset: 2px;
- z-index:1;
- text-shadow:none;
- opacity: 0;
- }
- .box2 {
- background: #000;
- font-family:'Roboto Mono', monospace;
- font-variant: small-caps;
- top: 20%;
- left: 65%;
- font-size:12px;
- color: #fcfcfc;
- height: 0px;
- width: 0px;
- letter-spacing: 0px;
- overflow-y:auto;
- position: absolute;
- line-height: 10px;
- padding: 1px;
- margin: 1px;
- border: 1px solid rgba(255,255,255,.32);
- outline: 1px solid rgba(255,255,255,.5);
- outline-offset: 2px;
- z-index:1;
- text-shadow:none;
- opacity: 0;
- }
- .transform {
- -webkit-transition: all 2s ease;
- -moz-transition: all 2s ease;
- -o-transition: all 2s ease;
- -ms-transition: all 2s ease;
- transition: all 2s ease;
- }
- .transform-active {
- height: 200px;
- width: 200px;
- opacity: 1;
- }
- .transform2 {
- -webkit-transition: all 2s ease;
- -moz-transition: all 2s ease;
- -o-transition: all 2s ease;
- -ms-transition: all 2s ease;
- transition: all 2s ease;
- }
- .transform-active2 {
- height: 200px;
- width: 200px;
- opacity: 1;
- }
- .button1 {
- position:absolute;
- transition-duration: .4s;
- cursor: pointer;
- padding: 0;
- border: none;
- }
- .button1 {
- background-image:url("http://i.picpar.com/MJLd.png");
- background-size: 100%;
- width: 117px;
- height: 34px;
- top: 50%;
- left: 22%;
- }
- .button1:hover {
- background-image:url("http://i.picpar.com/MJLd.png");
- background-size: 100%;
- width: 117px;
- height: 34px;
- }
- .button2 {
- position:absolute;
- transition-duration: .4s;
- cursor: pointer;
- padding: 0;
- border: none;
- }
- .button2 {
- background-image:url("http://i.picpar.com/OJLd.png");
- background-size: 100%;
- width: 117px;
- height: 30px;
- top: 15%;
- left: 65%;
- }
- .button2:hover {
- background-image:url("http://i.picpar.com/OJLd.png");
- background-size: 100%;
- width: 117px;
- height: 30px;
- }
- <body> box:
- <div class="box transform">
- Blah blah blah<br>
- Blah blah blah<br>
- Blah blah blah<br>
- Blah blah blah<br>Blah blah blah<br>
- </div>
- <div class="box2 transform2">
- </div>
- <input type="button" id="button1" class="button1" ></input>
- <input type="button" id="button2" class="button2" ></input>
Advertisement
Add Comment
Please, Sign In to add comment