I am using jQuery transit to trying an add some css3 movement to my slides in my jQuery Cycle2 slideshow. I have managed to get all BUT the first slide to have the effect. See my code below.
Like I said, the first slide does not have the effect applied to it. I've got to the point now where I need to reach out! HELP!
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<div id="home-slideshow" class="cycle-slideshow slide-animate"
data-cycle-timeout="6000"
data-cycle-speed="1000"
data-cycle-slides="> div.home-slide-cont"
data-cycle-fx="fade"
data-cycle-pause-on-hover="true">
<div class="home-slide-cont first-slide">
<div class="full-slide" style="background-image: url('1_large.jpg')"></div>
<span class="slide-title">
<blockquote>Title One here</blockquote>
</span><!-- end .full-width -->
</div>
<div class="home-slide-cont ">
<div class="full-slide" style="background-image: url('2_large.jpg')"></div>
<span class="slide-title">
<blockquote>Title Two here</blockquote>
</span><!-- end .full-width -->
</div>
<div class="home-slide-cont ">
<div class="full-slide" style="background-image: url('3_large.jpg')"></div>
<span class="slide-title">
<blockquote>Title Three here</blockquote>
</span><!-- end .full-width -->
</div>
</div>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#home-slideshow.slide-animate .first-slide div').transition({scale: 1.1}, 9000,'ease');
$('#home-slideshow.slide-animate').on('cycle-after',function(e, optionHash, outgoingSlideEl, incomingSlideEl, forwardFlag){
$('#home-slideshow.slide-animate .cycle-slide-active div').transition({scale: 1.1}, 9000,'ease');
});
});
</script>
<script type="text/javascript" src="/js/jquery.transit.min.js"></script>
<script type="text/javascript" src="/js/jquery.cycle2.swipe.min.js"></script>
<script type="text/javascript" src="/js/jquery.cycle2.min.js"></script>
Thanks for any help on this, massively appreciated.
PART 2
OK, so i have seen that the Google Maps API is causing a conflict, if i remove the api it works.
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?v=3&sensor=true&libraries=weather,panoramio,places,geometry,drawing&language="></script> <script type="text/javascript"> var EE_GMAPS = { version : "3.2.2", base_path : "http://www.domain.com/", act_path : "http://www.domain.com/?ACT=85", api_path : "http://www.domain.com/?ACT=86", } </script> <script type="text/javascript" src="http://www.domain.com/themes/third_party/gmaps/js/gmaps.min.js" ></script>
<script type="text/javascript" src="/js/jquery.transit.min.js"></script>
<script type="text/javascript" src="/js/jquery.cycle2.min.js"></script>
<script type="text/javascript" src="/js/jquery.cycle2.swipe.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#home-slideshow.slide-animate .first-slide div').transition({
scale: 1.1
}, 9000, 'ease');
$('#home-slideshow.slide-animate').on('cycle-before', function(e, optionHash, outgoingSlideEl, incomingSlideEl, forwardFlag) {
$('#home-slideshow.slide-animate .cycle-slide-active div').css({
scale: 1
});
});
$('#home-slideshow.slide-animate').on('cycle-after', function(e, optionHash, outgoingSlideEl, incomingSlideEl, forwardFlag) {
$('#home-slideshow.slide-animate .cycle-slide-active div').transition({
scale: 1.1
}, 9000, 'ease');
});
});
</script>
Is this what you asked for?
Update
I have added your google api code to above answer. I found it working without any different behavior. I had a quick check at the console and found some errors and warnings instead, all related to your google api codes.
I can not say anything more unless you provide your exact faulty code.