Menu
Hi all!
I’m building my homepage for my photography and business website and need to code this animation. Think it is in CSS but not quite sure and have been searching a while about centrally divided layouts.
I made a GIF about my idea with an AE comp, so thought it could help if someone has a clue on how to do it. Leaving that here:
[url]https://dl.dropboxusercontent.com/u/54898895/homepage-gif.gif
[url]https://dl.dropboxusercontent.com/u/54898895/homepage-gif.html
Any ideas about how to code it?
Thanks!
Should this animation work mouse controlled as visible in your GIF or should it run automatically?[/QUOTE]
And should the animation be controlled by dragging the mouse as visible in your GIF or just by mouseenter/mouseleave?[/QUOTE]
Coded this:
https://jsfiddle.net/Sempervivum/ne1gq7rL/
Is it what you intended?[/QUOTE]
Regarding @keyframe: Animations can be realized by CSS as well. Usually this option should be preferred due to aspects of performance. The reason why I did not use it in this case is, that you wanted to stop the animation at mouseleave. And I don't know a way to stop a CSS animation before completion. However my knowledge regarding CSS animations is limited and maybe there is a way to achieve that too.[/QUOTE]
Smugmug, the platform I use only accepts HTML or CSS, no javascript in it in any way... Have tried the full day to run @keyframes but no luck with it...[/QUOTE]First I wanted to recommend looking for a better hoster but then I had a look at smugmug and I'm afraid you need the features of selling photos etc. and therefore cannot switch to another hoster.
If hovering from "Hovered over Business"or"Hovered over Photography" on Logo the end result should be "Initial Position"[/QUOTE]When thinking about hovering you have to be aware of the following: When the area for hovering the logo is limited to the logo itself, the logo slides down and the mouse leaves the logo so that the animation would stop and revert. This might result in an endless loop.
First I wanted to recommend looking for a better hoster but then I had a look at smugmug and I'm afraid you need the features of selling photos etc. and therefore cannot switch to another hoster.
Did you already take into account that a user might use a touch device where there is no hover?
When thinking about hovering you have to be aware of the following: When the area for hovering the logo is limited to the logo itself, the logo slides down and the mouse leaves the logo so that the animation would stop and revert. This might result in an endless loop.
A solution for this might be to define larger and fixed areas for the hovering like I did in the previous solution. I switched on the borders to clarify:
https://jsfiddle.net/Sempervivum/ne1gq7rL/1/
You might transfer this to the new configuration and additionally define a center area for displaying the initial position.[/QUOTE]
Would it be possible for the animation to be there only using CSS/HTML? No need for the stop function if the mouse is hovered away from the area, just the fact that "if hovered on title 1 or 2, animation must be completed before doing animation 2/1". [/QUOTE]Just trying to find a solution using pure CSS. My knowledge regarding CSS animations is still limited, but I'd like to improve it as it's an interesting subject. Currently I don't know how to start two animations at the same time. Posted this problem at stackoverflow:
Just trying to find a solution using pure CSS. My knowledge regarding CSS animations is still limited, but I'd like to improve it as it's an interesting subject. Currently I don't know how to start two animations at the same time. Posted this problem at stackoverflow:
http://stackoverflow.com/questions/35420420/css-synchronize-different-animations
Someone has also posted a solution. Maybe it will be possible to limit the hover to a smaller region.[/QUOTE]
Just trying to find a solution using pure CSS. My knowledge regarding CSS animations is still limited, but I'd like to improve it as it's an interesting subject. Currently I don't know how to start two animations at the same time. Posted this problem at stackoverflow:
http://stackoverflow.com/questions/35420420/css-synchronize-different-animations
Someone has also posted a solution. Maybe it will be possible to limit the hover to a smaller region.[/QUOTE]
The animation is great and would really do it[/QUOTE]No problem to change the orientation and add the logo. I will do this if you can't do it on your own.
No problem to change the orientation and add the logo. I will do this if you can't do it on your own.[/QUOTE]
Update:
https://jsfiddle.net/Sempervivum/vja85zgL/11/
Maybe you can do the rest on your own: Backgrounds, lower button, enlargement of buttons when container is enlarged.
The logo is assigned to the lower container. Thus the lower container is enlarged when hovering the upper part of the logo. This can be fixed easily by splitting the logo into two parts and assigning them to the correct container.[/QUOTE]
0.1.9 — BETA 5.28