Created
March 12, 2021 07:53
-
-
Save bogoreh/e134db74bd1cc56ab05fc3e700f5a488 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Challenge: Sliding Snake</title> | |
<style> | |
body { | |
background: black; | |
color: green; | |
font-family: Arial, sans-serif; | |
} | |
img { | |
border-radius: 6px; | |
} | |
</style> | |
</head> | |
<body> | |
<img id="snake-pic" src="https://upload.wikimedia.org/wikipedia/commons/4/40/Chrysopelea_taprobanica.jpg" width="400"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> | |
<script> | |
var $pic = $("#snake-pic"); | |
$pic.hide(); | |
$pic.slideDown(1000, function() { | |
var snakeWarning = $("<p>"); | |
snakeWarning.text("snake!"); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment