| @@ -14,12 +14,9 @@ | ||
| 14 | 14 | "html": true, |
| 15 | 15 | "anchor": true |
| 16 | 16 | }, |
| 17 | 17 | "textdomain": "ablocks", |
| 18 | - "style": [ | |
| 19 | - "file:./style.css" | |
| 20 | - ], | |
| 21 | - "viewScript": [ | |
| 18 | + "editorScript": [ | |
| 22 | 19 | "file:./view.js" |
| 23 | 20 | ], |
| 24 | 21 | "attributes": { |
| 25 | 22 | "block_id": { |
| @@ -34,8 +31,16 @@ | ||
| 34 | 31 | "value": "Step One" |
| 35 | 32 | } |
| 36 | 33 | ] |
| 37 | 34 | }, |
| 35 | + "submitButtonText": { | |
| 36 | + "type": "string", | |
| 37 | + "default": "Submit" | |
| 38 | + }, | |
| 39 | + "submitButtonSize": { | |
| 40 | + "type": "string", | |
| 41 | + "default": "default" | |
| 42 | + }, | |
| 38 | 43 | "_margin": { |
| 39 | 44 | "type": "object", |
| 40 | 45 | "default": { |
| 41 | 46 | "isLinked": true, |
| @@ -457,9 +462,9 @@ | ||
| 457 | 462 | "xPositionUnitMobile": "px", |
| 458 | 463 | "xPosition": "", |
| 459 | 464 | "xPositionTablet": "0", |
| 460 | 465 | "xPositionMobile": "0", |
| 461 | - "yPositionUnit": "0", | |
| 466 | + "yPositionUnit": "px", | |
| 462 | 467 | "yPositionUnitTablet": "px", |
| 463 | 468 | "yPositionUnitMobile": "px", |
| 464 | 469 | "yPosition": "0", |
| 465 | 470 | "yPositionTablet": "0", |
| @@ -497,8 +502,34 @@ | ||
| 497 | 502 | "colorH": "", |
| 498 | 503 | "transitionDuration": "0" |
| 499 | 504 | } |
| 500 | 505 | }, |
| 506 | + "_gsapAnimation": { | |
| 507 | + "type": "object", | |
| 508 | + "default": { | |
| 509 | + "animationType": "none", | |
| 510 | + "duration": 1, | |
| 511 | + "delay": 0, | |
| 512 | + "triggerType": "scroll", | |
| 513 | + "ease": "none", | |
| 514 | + "x": 0, | |
| 515 | + "y": 0, | |
| 516 | + "rotation": 0, | |
| 517 | + "rotationY": 0, | |
| 518 | + "opacity": 1, | |
| 519 | + "xTo": 0, | |
| 520 | + "yTo": 0, | |
| 521 | + "rotationTo": 0, | |
| 522 | + "rotationYTo": 0, | |
| 523 | + "opacityTo": 1, | |
| 524 | + "easeTo": "none", | |
| 525 | + "loops": false, | |
| 526 | + "numberOfRepeat": 0, | |
| 527 | + "isSmooth": true, | |
| 528 | + "startPoint": 80, | |
| 529 | + "endPoint": 10 | |
| 530 | + } | |
| 531 | + }, | |
| 501 | 532 | "_hide_on_desktop": { |
| 502 | 533 | "type": "boolean", |
| 503 | 534 | "default": false |
| 504 | 535 | }, |
| @@ -512,7 +543,21 @@ | ||
| 512 | 543 | }, |
| 513 | 544 | "_custom_css": { |
| 514 | 545 | "type": "string", |
| 515 | 546 | "default": "" |
| 547 | + }, | |
| 548 | + "_animation_element_trigger": { | |
| 549 | + "type": "array", | |
| 550 | + "default": [], | |
| 551 | + "items": { | |
| 552 | + "type": "object" | |
| 553 | + } | |
| 554 | + }, | |
| 555 | + "_animation_page_trigger": { | |
| 556 | + "type": "array", | |
| 557 | + "default": [], | |
| 558 | + "items": { | |
| 559 | + "type": "object" | |
| 560 | + } | |
| 516 | 561 | } |
| 517 | 562 | } |
| 518 | 563 | } |