title: How to write if else if statement in jquery where condition set by wordpress option setting
body: <p>How to pass wordpress option setting value as condition to toggle jquery function using if else statement?</p>
  
  <p>Wordpress option setting value is 'select-type' value which is grabbed in my template using</p>
  
  <pre><code>&lt;?php echo get_option('my_animation_module') ?&gt;
  </code></pre>
  
  <p>which may print only one value like animation1, animation2, animation3 and so far..</p>
  
  <p>I want to pass this option value as a condition in jquery to get diffrent animation effect using this wordpress option value. </p>
  
  <p>HTML :</p>
  
  <pre><code>&lt;div id="content-page&gt;
  &lt;img src="images/myimage.png"/&gt; 
  &lt;div&gt;
  </code></pre>
  
  <p>Jquery :</p>
  
  <pre><code>$(document).ready(function(){ 
  
      $('#content-page').hover(function() {
              $(this).find('img').stop(false,true).animate({'top':480, 'left':270}, {duration:600});
                     },
  
          function() {
              $(this).find('img').stop(false,true).animate({'top':0, 'left':270}, {duration:500});
  
          });
  
        });  
  </code></pre>
  
  <p>This is my first sample animation effect using jQuery. I want to add diffrent animation effect on image and those get shuffled using if else statement in jQuery and wordpress option value as condition.</p>