javascript fadeIn/fadeOut not working simultaneously -


I have developed a page for a customer who is involved in video production. I have created a gallery of thumbnails, which is displayed when a click with related video is displayed. When you click on a slightly "X" graphic, you are again hidden, and you can navigate to the next or previous video in the gallery with arrow graphics, which fades into the next video and the current video is a Pulls out.

Here's some JavaScript:

  $ ("div.link"). Click (function ($ ("# background"). CSS ({opacity: 0, visibility: "visible"}. Animate ({obscurity: 1}, 680); $ ("body"). CSS ({ Click (overflow: "hidden"};}); $ ("# video1 link") (function () {$ ("# video1"). CSS ({opacity: 0, visibility: "visible"}). ({ Fuzzy: 1}, 680); $ ("# video1"). Feidin (680);}); $ ("# Video1previous") Click (function () {$ ("# video2") .Fedhat (680 ); $ ("# Video1"). CSS ({obscurity: 0, visibility: "visible"}). Chetan ({obscurity: 1}, 680); $ ("# video1"). (680);});  

At first glance, my code was working, but it works only smoothly for the first time. Every time you first say 'this' When you click on the 'Previous' button, the video of this video is published, a div is floped, a break occurs, then the second division will be faded. I want the effect for them to fade together and out , Any ideas as they do on the first click?

hidden here HTML is one of the videos that holds a video:

  & lt; Div class = "videopage" id = "shortterm12" & gt; & Lt; Div class = "video" & gt; & Lt; Video class = "video" id = "shortterm12video" width = "640" height = "360" control = "control" & gt; & Lt; Source src = "video / shortterm12.mp4" type = "video / mp34" & gt; & Lt; Source src = "video / shortterm12.ogg" type = "video / og" & gt; & Lt; Source src = "video / shortterm12.webm" type = "video / webm" & gt; & Lt; Object data = "Video / Shortcut 12.MP4" width = "640" height = "360" & gt; & Lt; Embed src = "video / shortterm12.swf" width = "640" height = "360" & gt; & Lt; / Embed & gt; & Lt; / Object & gt; & Lt; / Video & gt; & Lt; Div class = "off" & gt; & Lt; Img square = "off" src = "picture / close" /> & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Img class = "next" id = "sigurrosnext" src = "picture / next page" /> & Lt; Div class = "description" & gt; & Lt; P class = "title" & gt; Short Term 12 Official Trailer & lt; / P & gt; & Lt; P class = "description" & gt; Director: Destin Krypton & lt; / Br & gt; Production Designer: Rachel Myers & lt; / Br & gt; Art Director: Grace Elle & lt; / P & gt; & Lt; / Div & gt; & Lt; / Div & gt;  


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -