spritesheet-templates
Version:
Convert spritesheet data into CSS or CSS pre-processor data
68 lines • 1.76 kB
JSON
{
"sprite-dash-case": {
"x": 0,
"y": 0,
"width": 10,
"height": 20,
"image": "nested/dir/spritesheet.png",
"escaped_image": "nested/dir/spritesheet.png",
"total_width": 80,
"total_height": 100,
"offset_x": 0,
"offset_y": 0,
"px": {
"x": "0px",
"y": "0px",
"offset_x": "0px",
"offset_y": "0px",
"height": "20px",
"width": "10px",
"total_height": "100px",
"total_width": "80px"
}
},
"sprite_snake_case": {
"x": 10,
"y": 20,
"width": 20,
"height": 30,
"image": "nested/dir/spritesheet.png",
"escaped_image": "nested/dir/spritesheet.png",
"total_width": 80,
"total_height": 100,
"offset_x": -10,
"offset_y": -20,
"px": {
"x": "10px",
"y": "20px",
"offset_x": "-10px",
"offset_y": "-20px",
"height": "30px",
"width": "20px",
"total_height": "100px",
"total_width": "80px"
}
},
"spriteCamelCase": {
"x": 30,
"y": 50,
"width": 50,
"height": 50,
"image": "nested/dir/spritesheet.png",
"escaped_image": "nested/dir/spritesheet.png",
"total_width": 80,
"total_height": 100,
"offset_x": -30,
"offset_y": -50,
"px": {
"x": "30px",
"y": "50px",
"offset_x": "-30px",
"offset_y": "-50px",
"height": "50px",
"width": "50px",
"total_height": "100px",
"total_width": "80px"
}
}
}