A reminder to myself » CSS http://simionbaws.ro Stuff I might need later. Mon, 06 Jul 2015 13:25:52 +0000 en-US hourly 1 http://wordpress.org/?v=4.3.1 Bootstrap carousel – fade effect vs slide http://simionbaws.ro/programming/bootstrap-carousel-fade-effect-vs-slide/ http://simionbaws.ro/programming/bootstrap-carousel-fade-effect-vs-slide/#comments Tue, 03 Sep 2013 11:21:44 +0000 http://blog.simionbaws.ro/?p=92 To implement a fade transition for your bootstrap carousel, add and use the following class to the carousel main holder.

.carousel.c-fade .item {
  -webkit-transition: opacity 1s ease-in-out;
  -moz-transition: opacity 1s ease-in-out;
  -ms-transition: opacity 1s ease-in-out;
  -o-transition: opacity 1s ease-in-out;
  transition: opacity 1s ease-in-out;
}
.carousel.c-fade .active.left,
.carousel.c-fade .active.right {
  left: 0;
  z-index: 2;
  opacity: 0;
  filter: alpha(opacity=0);
}
.carousel.c-fade .next,
.carousel.c-fade .prev {
  left: 0;
  z-index: 1;
}
.carousel.c-fade .carousel-control {
  z-index: 3;
}

Example:

<div id="my-carousel" class="carousel slide c-fade">

 

Google+
]]>
http://simionbaws.ro/programming/bootstrap-carousel-fade-effect-vs-slide/feed/ 8
Object has no method ‘curCSS’ http://simionbaws.ro/programming/has-no-method-curcss/ http://simionbaws.ro/programming/has-no-method-curcss/#comments Tue, 27 Aug 2013 21:48:53 +0000 http://blog.simionbaws.ro/?p=77 I was implementing jquery-ui autocomplete on an older project, and came across this error:

Uncaught TypeError: Object function (a,b){return new p.fn.init(a,b,c)} has no method 'curCSS'

Problem: Jquery removed .curCSS() method in 1.8 version.

The solution:  … Either upgrade jquery-ui (recent versions do not need ‘curCSS’ method), or downgrade jquery.

Good luck!

]]>
http://simionbaws.ro/programming/has-no-method-curcss/feed/ 1