I want to create an animated logo that gives the illusion of being pulled up by a rope, represented by a vertical black line, from the bottom of the page to the top.
As the logo moves upwards, I would like the rope to disappear behind it, but I'm unsure how to achieve this effect. I am familiar with CSS translations for moving the logo, so that part is not a problem, but I need help with making the rope vanish seamlessly.
If possible, I prefer using CSS for this animation, but I am open to using JavaScript if necessary.
Thank you!
EDIT: Here is some of the HTML and CSS code I have been working on:
body {
background-color: White;"
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
}
li {
display: inline-block;
}
li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
margin: 0
}
li a:hover:not(.active) {
background-color: blue;
}
.active {
background-color: #4CAF50;
}
p.one {
color: black;
font-family: arial;
padding-top: 50px;
align="center";
}
</style>
</head>
<body>
<ul>
<li><a class="active" href="#home">Home</a></li>
<li><a href="#Products">Our Products</a></li>
<li><a href="#Contact">Contact</a></li>
</ul>
<h1>Home</h1>
<p class="one", align="center">Text</p>