background-position

Flip vertically a background-image every time it repeat-y

南楼画角 提交于 2019-11-27 17:40:15
问题 I'm searching for a trick that repeat my background image vertically, but every time the image is repeated I want to flip it vertically. I tried all the things in my mind with repeat-y but I don't found a solution, even searching for it in google. Example: Straight background-image Flipped background-image when it repeat-y And then flipped again to straight There is a method to obtain that position? I'll accept the solution in JScript (and library of it) only if there isn't a solution with

jQuery 1.6: backgroundPosition vs backgroundPositionX and FF4 compatibility

允我心安 提交于 2019-11-27 09:39:05
In an attempt to upgrade the jQuery plugin 'iCheckbox' (http://stackoverflow.com/questions/6032538/) to work above jQuery 1.4.4 I found out that the use of animate({backgroundPosition:'10px 0px'}) needed to be changed to animate({backgroundPositionX: '10px', backgroundPositionY: '0px'}) as only properties with one parameter should be used. So far, this makes sense, but wait.. while it's working fine in Safari and Chrome, it's not working in FF4 (all on Mac).. So i tried this and that and finally found out that if I change it to animate({backgroundPosition: '10px'}) It works everywhere! But

jquery animate background-position firefox

孤街浪徒 提交于 2019-11-27 05:07:54
I got this background image slider thing working in chrome and safari, but it doesnt do anything in firefox. any help? $(function(){ var image= ".main-content"; var button_left= "#button_left"; var button_right= "#button_right"; var animation= "easeOutQuint"; var time= 800; var jump= 800; var action= 0; $(button_left).click(function(){ right(); }); $(button_right).click(function(){ left(); }); $(document).keydown(function(event){ if(event.keyCode == '37'){ right(); } }); $(document).keydown(function(event){ if(event.keyCode == '39'){ left(); } }); function left(){ if(action == 0){ action= 1; $

backgroundPositionX not working on Firefox

好久不见. 提交于 2019-11-27 03:43:08
问题 I have play with youtube's sprite animation but there is a problem. backgroundPositionX won't work under Firefox (but works on Chrome and IE8)... This is the code: https://jsfiddle.net/74RZb/ Extra info: the problem is that under firefox It doesn't change the background position (won't play the animation)... there are no errors, just doesn't change the background position. 回答1: Firefox doesn't support backgroundPositionX, but it does support background position So we can do something like

CSS background-position not working in Mobile Safari (iPhone/iPad)

折月煮酒 提交于 2019-11-27 02:38:36
问题 I have an issue with background-position in mobile safari. It works fine on other desktop browsers, but not on iPhone or iPad. body { background-color: #000000; background-image: url('images/background_top.png'); background-repeat: no-repeat; background-position: center top; overflow: auto; padding: 0px; margin: 0px; font-family: "Arial"; } #header { width: 1030px; height: 215px; margin-left: auto; margin-right: auto; margin-top: 85px; background-image: url('images/header.png'); } #main

Change background position with jQuery

风流意气都作罢 提交于 2019-11-27 02:03:29
问题 I'd like to change the background position of a CSS-class while hovering a li-element. HTML: <div id="carousel"> <ul id="submenu"> <li>Apple</li> <li>Orange</li> </ul> </div> CSS: #carousel { float: left; width: 960px; height: 360px; background: url(../images/carousel.png); } Any suggestions on how to do this? 回答1: Here you go: $(document).ready(function(){ $('#submenu li').hover(function(){ $('#carousel').css('background-position', '10px 10px'); }, function(){ $('#carousel').css('background

jQuery 1.6: backgroundPosition vs backgroundPositionX and FF4 compatibility

穿精又带淫゛_ 提交于 2019-11-26 14:48:11
问题 In an attempt to upgrade the jQuery plugin 'iCheckbox' (http://stackoverflow.com/questions/6032538/) to work above jQuery 1.4.4 I found out that the use of animate({backgroundPosition:'10px 0px'}) needed to be changed to animate({backgroundPositionX: '10px', backgroundPositionY: '0px'}) as only properties with one parameter should be used. So far, this makes sense, but wait.. while it's working fine in Safari and Chrome, it's not working in FF4 (all on Mac).. So i tried this and that and

jquery animate background position

﹥>﹥吖頭↗ 提交于 2019-11-26 13:04:56
I can't seem to get this working. $('#product_family_options_dd').animate({ height: '300px', width: '900px', backgroundPosition: '-20px 0px', }, The height and width animate but not the background. You don't need to use the background animate plugin if you just use separate values like this: $('.pop').animate({ 'background-position-x': '10%', 'background-position-y': '20%' }, 10000, 'linear'); I guess it might be because it is expecting a single value? taken from the animate page on jQuery : Animation Properties and Values All animated properties should be animated to a single numeric value,

Is background-position-x (background-position-y) a standard W3C CSS property?

爱⌒轻易说出口 提交于 2019-11-26 11:23:21
I'm worried about background-position-x and background-position-y . Gecko (Firefox) and Presto (Opera) don't support them, but Webkit (Chrome, Safari) does... Does anyone know (with official references) if this is (or will be) included in the standard? Razor background-position-x and background-position-y are now part of the level 4 of Backgrounds and Borders standard . RESOLVED: background-position-x/-y, background-repeat-x/-y approved for level 4 of backgrounds and borders. Splitting background-position into -x and -y was proposed for CSS 3 but it got rejected as the working group

Is background-position-x (background-position-y) a standard W3C CSS property?

别来无恙 提交于 2019-11-26 02:24:13
问题 I\'m worried about background-position-x and background-position-y . Gecko (Firefox) and Presto (Opera) don\'t support them, but Webkit (Chrome, Safari) does... Does anyone know (with official references) if this is (or will be) included in the standard? 回答1: background-position-x and background-position-y are now part of the level 4 of Backgrounds and Borders standard. RESOLVED: background-position-x/-y, background-repeat-x/-y approved for level 4 of backgrounds and borders. 回答2: Splitting