Toggle/Animate breaks <a href=''> linking?
Greetings,
I've already spent two nights on trying to solve this very annoying issue, so I'd really appreciate if anybody could give me a hand as fast as possible.
SITUATION DESCRIPTION:
I've created a menu that is animated by two jQuery scripts (also written by me). One script animates the <ul> listing of menu items, and the second one animates whole menu blocks - a block (header and <ul> listings)r is risen up after clicking its header.
PROBLEM DESCRIPTION:
After applying those two scripts on the menu blocks by anchoring their .js files to the site code, the <a href> linking stops working. When I turn off the script that's responsible for raising the menu blocks, everything gets back to normal. The thing is that I really need that script to work, as the menu blocks are meant to be hidden behind the main content box of the website, leaving only the headers visible.
CODE:
- $(document).ready(function(){
- $(".foto_trigger").click(function(){
- $(".blok_foto").toggle(
- function()
- {
- $(".blok_foto").animate({
- top: '-173'
- }, 2000);
- $(".foto_reflect").animate({
- top: '100', opacity: '0'
- }, 2000);
- },
- function()
- {
- $(".blok_foto").animate({
- top: '-10'
- }, 2000);
- $(".foto_reflect").animate({
- top: '-1', opacity: '80'
- }, 2000);
- });
- });
- $(".video_trigger").click(function(){
- $(".blok_video").toggle(
- function()
- {
- $(".blok_video").animate({
- top: '-173'
- }, 2000);
- $(".video_reflect").animate({
- top: '100', opacity: '0'
- }, 2000);
- },
- function()
- {
- $(".blok_video").animate({
- top: '-10'
- }, 2000);
- $(".video_reflect").animate({
- top: '-1', opacity: '80'
- }, 2000);
- });
- });
-
- $(".mark_trigger").click(function(){
- $(".blok_mark").toggle(
- function()
- {
- $(".blok_mark").animate({
- top: '-173'
- }, 2000);
- $(".mark_reflect").animate({
- top: '100', opacity: '0'
- }, 2000);
- },
- function()
- {
- $(".blok_mark").animate({
- top: '-10'
- }, 2000);
- $(".mark_reflect").animate({
- top: '-1', opacity: '80'
- }, 2000);
- });
- });
-
- });