Vintage TV

Developer
Size
3,903 Kb
Views
28,336

How do I make an vintage tv?

A vintage TV in HTML/CSS.. What is a vintage tv? How do you make a vintage tv? This script and codes were developed by Kevin Jannis on 25 August 2022, Thursday.

Vintage TV Previews

Vintage TV - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Vintage TV</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="vintage-tv"> <span class="antenna"></span> <span class="screen"></span> <span class="controls-1"></span> <span class="controls-2"></span>
</div> <script src="js/index.js"></script>
</body>
</html>

Vintage TV - Script Codes CSS Codes

* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; margin: 0; padding: 0;
}
body { position: relative; background: #e7e0a3; padding: 100px 0; text-align: center;
}
#vintage-tv { -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; position: relative; display: inline-block; background: #464646; z-index: 0; width: 234px; height: 163px;
}
#vintage-tv:before { -moz-border-radius: 2px 2px 0 0; -webkit-border-radius: 2px; border-radius: 2px 2px 0 0; content: " "; position: absolute; display: block; background: #464646; width: 52px; height: 3px; top: -3px; left: 23px;
}
#vintage-tv:after { -moz-border-radius: 2px 2px 0 0; -webkit-border-radius: 2px; border-radius: 2px 2px 0 0; content: " "; position: absolute; display: block; background: #464646; width: 26px; height: 4px; top: -7px; left: 36px;
}
#vintage-tv .screen { -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; -moz-box-shadow: inset 0 0 20px 0 rgba(0, 0, 0, 0.05), inset 0 0 100px 0 rgba(0, 0, 0, 0.56), inset 0 -90px 100px 0 rgba(0, 0, 0, 0.23), inset 0 90px 100px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.43); -webkit-box-shadow: inset 0 0 20px 0 rgba(0, 0, 0, 0.05), inset 0 0 100px 0 rgba(0, 0, 0, 0.56), inset 0 -90px 100px 0 rgba(0, 0, 0, 0.23), inset 0 90px 100px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.43); box-shadow: inset 0 0 20px 0 rgba(0, 0, 0, 0.05), inset 0 0 100px 0 rgba(0, 0, 0, 0.56), inset 0 -90px 100px 0 rgba(0, 0, 0, 0.23), inset 0 90px 100px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.43); position: absolute; display: block; background: #2e2e2e; width: 173px; height: 147px; top: 8px; left: 8px;
}
#vintage-tv .antenna:before { -moz-transform: rotate(-15deg); -ms-transform: rotate(-15deg); -webkit-transform: rotate(-15deg); transform: rotate(-15deg); content: " "; position: absolute; display: block; background: #464646; width: 2px; height: 70px; top: -72px; left: 37px;
}
#vintage-tv .antenna:after { -moz-transform: rotate(35deg); -ms-transform: rotate(35deg); -webkit-transform: rotate(35deg); transform: rotate(35deg); content: " "; position: absolute; display: block; background: #464646; width: 2px; height: 50px; top: -52px; left: 66px;
}
#vintage-tv .controls-1 { -moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px; position: absolute; display: block; background: #a49870; width: 37px; height: 82px; top: 8px; left: 189px;
}
#vintage-tv .controls-1:before { -moz-border-radius: 50%; -webkit-border-radius: 50%; border-radius: 50%; -moz-box-shadow: 0 38px 0 0 #eae9e9, 2px 40px 2px 0 #8a7e58, 2px 2px 2px 0 #8a7e58; -webkit-box-shadow: 0 38px 0 0 #eae9e9, 2px 40px 2px 0 #8a7e58, 2px 2px 2px 0 #8a7e58; box-shadow: 0 38px 0 0 #eae9e9, 2px 40px 2px 0 #8a7e58, 2px 2px 2px 0 #8a7e58; content: " "; position: absolute; display: block; background: #eae9e9; z-index: 1; width: 23px; height: 23px; top: 10px; left: 7px;
}
#vintage-tv .controls-1:after { -moz-transform: rotate(40deg); -ms-transform: rotate(40deg); -webkit-transform: rotate(40deg); transform: rotate(40deg); -moz-box-shadow: 24px 29px 0 0 #f4f5f5, 26px 29px 0 0 #e1e4e4, 2px 0 0 0 #e1e4e4; -webkit-box-shadow: 24px 29px 0 0 #f4f5f5, 26px 29px 0 0 #e1e4e4, 2px 0 0 0 #e1e4e4; box-shadow: 24px 29px 0 0 #f4f5f5, 26px 29px 0 0 #e1e4e4, 2px 0 0 0 #e1e4e4; content: " "; position: absolute; display: block; background: #f4f5f5; z-index: 10; width: 3px; height: 25px; top: 9px; left: 17px;
}
#vintage-tv .controls-2 { -moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px; position: absolute; display: block; background: #a49870; width: 37px; height: 57px; top: 98px; left: 189px;
}
#vintage-tv .controls-2:before { -moz-border-radius: 50%; -webkit-border-radius: 50%; border-radius: 50%; content: " "; position: absolute; display: block; background: #444138; width: 17px; height: 31px; top: 13px; left: 10px;
}
#vintage-tv .controls-2:after { -moz-box-shadow: 0 3px 0 0 #aea178, 0 6px 0 0 #aea178, 0 9px 0 0 #aea178, 0 12px 0 0 #aea178, 0 15px 0 0 #aea178, 0 18px 0 0 #aea178, 0 21px 0 0 #aea178, 0 24px 0 0 #aea178, 0 27px 0 0 #aea178, 0 30px 0 0 #aea178, 0 33px 0 0 #aea178, 0 36px 0 0 #aea178, 0 39px 0 0 #aea178, 0 42px 0 0 #aea178, 0 45px 0 0 #aea178, 0 48px 0 0 #aea178, 0 51px 0 0 #aea178; -webkit-box-shadow: 0 3px 0 0 #aea178, 0 6px 0 0 #aea178, 0 9px 0 0 #aea178, 0 12px 0 0 #aea178, 0 15px 0 0 #aea178, 0 18px 0 0 #aea178, 0 21px 0 0 #aea178, 0 24px 0 0 #aea178, 0 27px 0 0 #aea178, 0 30px 0 0 #aea178, 0 33px 0 0 #aea178, 0 36px 0 0 #aea178, 0 39px 0 0 #aea178, 0 42px 0 0 #aea178, 0 45px 0 0 #aea178, 0 48px 0 0 #aea178, 0 51px 0 0 #aea178; box-shadow: 0 3px 0 0 #aea178, 0 6px 0 0 #aea178, 0 9px 0 0 #aea178, 0 12px 0 0 #aea178, 0 15px 0 0 #aea178, 0 18px 0 0 #aea178, 0 21px 0 0 #aea178, 0 24px 0 0 #aea178, 0 27px 0 0 #aea178, 0 30px 0 0 #aea178, 0 33px 0 0 #aea178, 0 36px 0 0 #aea178, 0 39px 0 0 #aea178, 0 42px 0 0 #aea178, 0 45px 0 0 #aea178, 0 48px 0 0 #aea178, 0 51px 0 0 #aea178; content: " "; position: absolute; display: block; background: #aea178; width: 37px; height: 1px; top: 3px; left: 0;
}

Vintage TV - Script Codes JS Codes

/*
A vintage TV.
Made by Kevin Jannis (@kevinjannis)
View more at www.janniskev.in
Inspired by: https://dribbble.com/shots/1631288-Vintage-TV
*/
function generateNoise(opacity, h, w) { function fakeCanvas(h, w) { var canvas = document.createElement('canvas'); canvas.height = h; canvas.width = w; return canvas; } function randomise(data, opacity) { var i, x; for (i = 0; i < data.length; ++i) { x = Math.floor(Math.random() * 0xffffff); data[i] = x | opacity; } } function generate(opacity, h, w) { var canvas = fakeCanvas(h, w), context = canvas.getContext('2d'), image = context.createImageData(h, w), data = new Uint32Array(image.data.buffer); opacity = Math.floor(opacity * 0x255) << 24; return function() { randomise(data, opacity); context.putImageData(image, 0, 0); var screen = document.getElementsByClassName('screen')[0]; screen.style.backgroundImage = 'url("' + canvas.toDataURL('image/png') + '")'; }; } return generate(opacity || 0.2, h || 55, w || 55);
}
var noise = generateNoise(.13, 173, 147);
(function loop() { noise(); if (window.requestAnimationFrame) { requestAnimationFrame(loop); } else { setTimeout(loop, 30); // About 33 fps }
})();
Vintage TV - Script Codes
Vintage TV - Script Codes
Home Page Home
Developer Kevin Jannis
Username kevinjannis
Uploaded August 25, 2022
Rating 4.5
Size 3,903 Kb
Views 28,336
Do you need developer help for Vintage TV?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Kevin Jannis (kevinjannis) Script Codes
Create amazing SEO content with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!