| @@ -14,14 +14,21 @@ | ||
| 14 | 14 | "textdomain": "ablocks", |
| 15 | 15 | "editorStyle": [ |
| 16 | 16 | "ablocks-animate-style", |
| 17 | 17 | "ablocks-common-style", |
| 18 | - "file:./style.css" | |
| 18 | + "file:./styles.css" | |
| 19 | 19 | ], |
| 20 | + "editorScript": [ | |
| 21 | + "ablocks-common-script" | |
| 22 | + ], | |
| 20 | 23 | "attributes": { |
| 21 | 24 | "block_id": { |
| 22 | 25 | "type": "string" |
| 23 | 26 | }, |
| 27 | + "blockVersion": { | |
| 28 | + "type": "number", | |
| 29 | + "default": "" | |
| 30 | + }, | |
| 24 | 31 | "tableCreated": { |
| 25 | 32 | "type": "boolean", |
| 26 | 33 | "default": false |
| 27 | 34 | }, |
| @@ -591,9 +598,9 @@ | ||
| 591 | 598 | "xPositionUnitMobile": "px", |
| 592 | 599 | "xPosition": "", |
| 593 | 600 | "xPositionTablet": "0", |
| 594 | 601 | "xPositionMobile": "0", |
| 595 | - "yPositionUnit": "0", | |
| 602 | + "yPositionUnit": "px", | |
| 596 | 603 | "yPositionUnitTablet": "px", |
| 597 | 604 | "yPositionUnitMobile": "px", |
| 598 | 605 | "yPosition": "0", |
| 599 | 606 | "yPositionTablet": "0", |
| @@ -631,8 +638,34 @@ | ||
| 631 | 638 | "colorH": "", |
| 632 | 639 | "transitionDuration": "0" |
| 633 | 640 | } |
| 634 | 641 | }, |
| 642 | + "_gsapAnimation": { | |
| 643 | + "type": "object", | |
| 644 | + "default": { | |
| 645 | + "animationType": "none", | |
| 646 | + "duration": 1, | |
| 647 | + "delay": 0, | |
| 648 | + "triggerType": "scroll", | |
| 649 | + "ease": "none", | |
| 650 | + "x": 0, | |
| 651 | + "y": 0, | |
| 652 | + "rotation": 0, | |
| 653 | + "rotationY": 0, | |
| 654 | + "opacity": 1, | |
| 655 | + "xTo": 0, | |
| 656 | + "yTo": 0, | |
| 657 | + "rotationTo": 0, | |
| 658 | + "rotationYTo": 0, | |
| 659 | + "opacityTo": 1, | |
| 660 | + "easeTo": "none", | |
| 661 | + "loops": false, | |
| 662 | + "numberOfRepeat": 0, | |
| 663 | + "isSmooth": true, | |
| 664 | + "startPoint": 80, | |
| 665 | + "endPoint": 10 | |
| 666 | + } | |
| 667 | + }, | |
| 635 | 668 | "_hide_on_desktop": { |
| 636 | 669 | "type": "boolean", |
| 637 | 670 | "default": false |
| 638 | 671 | }, |
| @@ -646,7 +679,21 @@ | ||
| 646 | 679 | }, |
| 647 | 680 | "_custom_css": { |
| 648 | 681 | "type": "string", |
| 649 | 682 | "default": "" |
| 683 | + }, | |
| 684 | + "_animation_element_trigger": { | |
| 685 | + "type": "array", | |
| 686 | + "default": [], | |
| 687 | + "items": { | |
| 688 | + "type": "object" | |
| 689 | + } | |
| 690 | + }, | |
| 691 | + "_animation_page_trigger": { | |
| 692 | + "type": "array", | |
| 693 | + "default": [], | |
| 694 | + "items": { | |
| 695 | + "type": "object" | |
| 696 | + } | |
| 650 | 697 | } |
| 651 | 698 | } |
| 652 | 699 | } |