Move on scroll.

images php coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
User avatar
rabbit93
New php-forum User
New php-forum User
Posts: 14
Joined: Thu Dec 26, 2019 5:55 pm

Fri Feb 05, 2021 5:40 pm

I want to create a path that follows the entire page with and image that follows this path as I scroll down the page. Preferably on the side of the page. for example, maybe a winding road and as I scroll a little car follows the path of the road while scrolling. The thing is, I have no clue where to start.

I decided to edit my post and include that this particular site is using very little php. I'm only using php to run mailers and posts. The design of the site itself is using CSS and HTML and JavaScript. However I am using CSS3 and HTML5.
*************************************************************************************
“The Web as I envisaged it, we have not seen it yet. The future is still so much bigger than the past.”
Tim Berners-Lee, Inventor of the World Wide Web.
simonbrahan
php-forum Fan User
php-forum Fan User
Posts: 137
Joined: Mon Jun 08, 2020 2:00 am
Contact:

Sun Feb 07, 2021 10:11 am

PHP runs on the server rather than in the browser; you can't do what you want with PHP.

You can do it with Javascript and CSS though; this tutorial show something similar with rotation.
User avatar
rabbit93
New php-forum User
New php-forum User
Posts: 14
Joined: Thu Dec 26, 2019 5:55 pm

Sun Feb 07, 2021 10:23 am

simonbrahan wrote:
Sun Feb 07, 2021 10:11 am
PHP runs on the server rather than in the browser; you can't do what you want with PHP.

You can do it with Javascript and CSS though; this tutorial show something similar with rotation.
Thank you @simombrahan. It's not the clearest idea of what I'm looking for but it definitely gives me a starting point. Luckily there are two types of people in this world. 1. Those who can extrapolate from incomplete data. 🤣
*************************************************************************************
“The Web as I envisaged it, we have not seen it yet. The future is still so much bigger than the past.”
Tim Berners-Lee, Inventor of the World Wide Web.
Post Reply