I am trying to achieve the effect of an origami bird image seemingly extending down from a logo which carries on down the page as the viewer scrolls. I have managed to get this working fairly well using z-axis and fixed positioning but the effect is ruined as soon as the page is zoomed in or resized, causing horizontal scrolling to kick in. I am very much an amateur and have spent hours reading very similar questions and answers but have not managed to get anything to work.
This is the idea I want to create http://www.debbiekate.com/indextest.html (I have posted the specific site as opposed to a JFiddle to make it more clear what I am trying to achieve).
The closest I have come is by changing the positioning of the 'bird' element to absolute and scrolling it in JavaScript. (You can see this in action by removing the comment tags for the js in and changing the position style of #bird to absolute). This works as I would like - the bird remains fixed in position when scrolling vertically but scrolls to the left when required, keeping it in line with the header logo and not obscuring the rest of the page. The problem is that the scrolling performance is pretty choppy, due the JS taking longer to catch up with the scrolling event as I understand it. I would like the effect to be as smooth as when using position:fixed.
I have read lots of similar topics, I think the closest one is here:
Fixing a menu in one direction in jquery
This sounds like an identical problem and the perfect solution but adding Jsarma's code to my site seems to have no effect whatsoever, I can't figure out what I'm doing wrong. I have no formal training in web development and am not much use with JavaScript, any help and your patience with a newcomer would be massively appreciated.