Image Transition effects not working, Image Transition effects not working |
Image Transition effects not working, Image Transition effects not working |
Ramesh |
Oct 30 2014, 02:34 AM
Post
#1
|
Group: Members Posts: 3 Joined: 30-October 14 Member No.: 21,737 |
Hi All,
I have written the CSS code for applying Image transition effects using filter and progid attributes. These effects are not working in any of the browsers. Request you to help me in this regards. Thanks, Ramesh Kumar.P |
Christian J |
Oct 30 2014, 05:08 AM
Post
#2
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
Please show an example.
But "filter and progid attributes" sounds like MSIE's properietary filter and transition effects, that are only supported by MSIE browsers. These days CSS3 should offer similar effects, that are supported by all major browser brands. |
Ramesh |
Oct 30 2014, 11:50 AM
Post
#3
|
Group: Members Posts: 3 Joined: 30-October 14 Member No.: 21,737 |
Here is the code which I have written for applying Transition and Filters
div.effect hover { opacity: 0; -webkit-transition: opacity 0.5s ease-in-out; -moz-transition: opacity 0.5s ease-in-out; -o-transition: opacity 0.5s ease-in-out; -ms-transition: opacity 0.5s ease-in-out; transition: opacity 0.5s ease-in-out; } JavaScript method to apply animation / transition effect: function image_effects() { var selobj = document.getElementById('slidehow_transition'); var selIndex = selobj.selectedIndex; //set the transition to the number selected in the list slideShow.filters.revealTrans.Transition = selIndex slideShow.filters.revealTrans.apply() slideShow.filters.revealTrans.play() } None of these works!! |
Christian J |
Oct 30 2014, 12:30 PM
Post
#4
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
div.effect hover The ":hover" pseudoclass must begin with a colon. QUOTE JavaScript method to apply animation / transition effect: function image_effects() { var selobj = document.getElementById('slidehow_transition'); var selIndex = selobj.selectedIndex; //set the transition to the number selected in the list slideShow.filters.revealTrans.Transition = selIndex slideShow.filters.revealTrans.apply() slideShow.filters.revealTrans.play() } MSIE's Filters and Transitions syntax has changed once or twice over the years, alas I can't remember what applied to which MSIE version. Perhaps you can find something here: http://msdn.microsoft.com/en-us/library/ms...7(v=vs.85).aspx |
Ramesh |
Oct 31 2014, 05:19 AM
Post
#5
|
Group: Members Posts: 3 Joined: 30-October 14 Member No.: 21,737 |
No Luck...
Unable to apply those filters or Transition effects. The error message is : Object doesn't support property or method 'filters' My Internet Explorer version is : IE11 |
Christian J |
Oct 31 2014, 05:47 AM
Post
#6
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
Seems they are no longer supported in IE11: http://msdn.microsoft.com/en-us/library/ie...5(v=vs.85).aspx
|
Lo-Fi Version | Time is now: 26th April 2024 - 06:41 AM |