scrimba
Build Components in HTML, CSS & JS
Text-Revealing Button - The JS πŸ’»
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Text-Revealing Button - The JS πŸ’»
AboutCommentsNotes
Text-Revealing Button - The JS πŸ’»
Expand for more info
index.html
run
preview
console
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="index.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Component 2 - Text-Revealing Button </title>
</head>
<body>

<button class="btn">Hide Text πŸ™ˆ</button>
<p class="text">This is some text!</p>

<script type="text/javascript" src="index.js"></script>
</body>
</html>
Console
/index.html
-5:44