mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-31 11:20:09 +00:00 
			
		
		
		
	tested image zooming...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									2e90687600
								
							
						
					
					
						commit
						da9cd48454
					
				| @ -30,7 +30,7 @@ Priority work | ||||
| 		| 		from the left of the axis and likewise for the right side.  | ||||
| 		| | ||||
| 			[X] stage I: position the promoted/demoted image correctly | ||||
| 			[_] 0% stage II: scroll ribbons correctly | ||||
| 			[_] stage II: scroll ribbons correctly | ||||
| 			| this is simple: | ||||
| 			| - center the right edge of image returned | ||||
| 			|   by getImageBefore in all ribbons other than current... | ||||
|  | ||||
| @ -181,6 +181,7 @@ function zoom(factor){ | ||||
| 	width: 50px; | ||||
| 	height: 50px; | ||||
| 	background: silver; | ||||
| 	color: white; | ||||
| 	float: left; | ||||
| 
 | ||||
| 	/* animate */ | ||||
| @ -191,8 +192,14 @@ function zoom(factor){ | ||||
| 	transition: all 0.5s ease; | ||||
| } | ||||
| 
 | ||||
| .image { | ||||
| 	background: no-repeat 50% black; | ||||
| 	background-size: contain; | ||||
| 	background-image: url(images/350px/DSC_3501.jpg); | ||||
| } | ||||
| 
 | ||||
| .current.square { | ||||
| 	background: gray; | ||||
| 	background-color: gray; | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| @ -239,7 +246,7 @@ function zoom(factor){ | ||||
| 			<div class="square">2</div> | ||||
| 			<div class="square">3</div> | ||||
| 			<div class="square">4</div> | ||||
| 			<div class="square">5</div> | ||||
| 			<div class="square image">5</div> | ||||
| 			<div class="square">6</div> | ||||
| 			<div class="square">7</div> | ||||
| 		</div> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user