Changeset 3121957
- Timestamp:
- 07/19/2024 10:37:33 AM (19 months ago)
- Location:
- breakdance-fancy-buttons/trunk
- Files:
-
- 4 edited
-
elements/Fancy_Button/css.twig (modified) (5 diffs)
-
elements/Fancy_Button/element.php (modified) (5 diffs)
-
plugin.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
breakdance-fancy-buttons/trunk/elements/Fancy_Button/css.twig
r3121952 r3121957 540 540 transition: all 0.25s ease; 541 541 content: ""; 542 z-index: 1; /* Ensure pseudo-elements are below the button content */542 z-index: 0; /* Ensure pseudo-elements are below the button content */ 543 543 } 544 544 … … 634 634 transition: all 0.3s ease; 635 635 z-index: 1; /* Ensure the button content is above any pseudo-elements */ 636 background-color: {{ design.design.background_color|default('#fff') }}; 636 637 } 637 638 … … 644 645 } 645 646 647 %%SELECTOR%% .fancybuttondiv:hover { 648 background-color: {{ design.design.background_color_hover|default('#333') }}; 649 } 650 646 651 %%SELECTOR%% .fancybuttondiv:hover a { 647 animation: marquee {{ content.fancy_button.marquee_speed }}s linear infinite; /* Adjust the duration (10s) to change the speed */652 animation: marquee {{ content.fancy_button.marquee_speed }}s linear infinite; /* Adjust the duration (10s) to change the speed */ 648 653 color: {{ design.design.text_color_hover|default('#fff') }}; 649 654 } … … 654 659 transform: translateX(100%); /* Start fully off the right */ 655 660 } 656 50% {657 transform: translateX(0); /* Centered in the viewport */658 }659 661 100% { 660 662 transform: translateX(-130%); /* Fully off the left */ … … 663 665 {% endif %} 664 666 665 666 667 /* Typing Effect */ 668 {% if content.fancy_button.select_effect == 'typing' %} 669 %%SELECTOR%% .fancybuttondiv { 670 position: relative; 671 overflow: hidden; 672 white-space: nowrap; 673 transition: all 0.3s ease; 674 } 675 676 %%SELECTOR%% .fancybuttondiv a { 677 display: inline-block; 678 position: relative; 679 color: {{ design.design.text_color|default('#333') }}; 680 animation: typing {{ content.fancy_button.typing_speed|default('5') }}s steps(30, end) infinite, blink 0.75s step-end infinite; 681 overflow: hidden; 682 border-right: 2px solid {{ design.design.text_color|default('#333') }}; 683 white-space: nowrap; 684 font-size: 1.5em; 685 } 686 687 %%SELECTOR%% .fancybuttondiv:hover a { 688 animation: none; /* Stop the animation on hover */ 689 color: {{ design.design.text_color_hover|default('#fff') }}; 690 border-right: none; /* Remove the cursor on hover */ 691 } 692 693 %%SELECTOR%% .fancybuttondiv:hover { 694 background-color: {{ design.design.background_color_hover|default('#333') }}; 695 } 696 697 /* Keyframes for the typing effect */ 698 @keyframes typing { 699 0% { 700 width: 0; 701 } 702 50%, 100% { 703 width: 100%; 704 } 705 } 706 707 @keyframes blink { 708 from, to { 709 border-color: transparent; 710 } 711 50% { 712 border-color: {{ design.design.text_color|default('#333') }}; 713 } 714 } 715 {% endif %} 716 717 718 719 /* Wobble Effect */ 720 {% if content.fancy_button.select_effect == 'wobble' %} 721 %%SELECTOR%% .fancybuttondiv { 722 position: relative; 723 display: inline-block; 724 overflow: hidden; 725 transition: all 0.3s ease; 726 } 727 728 %%SELECTOR%% .fancybuttondiv a { 729 display: inline-block; 730 position: relative; 731 color: {{ design.design.text_color|default('#333') }}; 732 transition: color 0.3s ease; 733 z-index: 1; 734 } 735 736 %%SELECTOR%% .fancybuttondiv:hover { 737 animation: wobble 0.5s ease-in-out; 738 } 739 740 %%SELECTOR%% .fancybuttondiv:hover a { 741 color: {{ design.design.text_color_hover|default('#fff') }}; 742 animation: text-wobble 0.5s ease-in-out; 743 } 744 745 %%SELECTOR%% .fancybuttondiv:hover { 746 background-color: {{ design.design.background_color_hover|default('#333') }}; 747 } 748 749 /* Keyframes for the wobble effect */ 750 @keyframes wobble { 751 0%, 100% { 752 transform: rotate(0deg); 753 } 754 25% { 755 transform: rotate(-5deg); 756 } 757 50% { 758 transform: rotate(5deg); 759 } 760 75% { 761 transform: rotate(-3deg); 762 } 763 } 764 765 /* Keyframes for the text wobble effect */ 766 @keyframes text-wobble { 767 0%, 100% { 768 transform: translateX(0); 769 } 770 25% { 771 transform: translateX(-3px); 772 } 773 50% { 774 transform: translateX(3px); 775 } 776 75% { 777 transform: translateX(-2px); 778 } 779 } 780 {% endif %} 781 782 /* Marquee Effect 2 */ 783 {% if content.fancy_button.select_effect == 'marquee2' %} 784 %%SELECTOR%% .fancybuttondiv { 785 position: relative; 786 overflow: hidden; 787 white-space: nowrap; 788 transition: all 0.3s ease; 789 790 } 791 792 %%SELECTOR%% .fancybuttondiv a { 793 display: block; 794 position: relative; 795 color: {{ design.design.text_color|default('#333') }}; 796 animation: marquee {{ content.fancy_button.marquee_speed_2 }}s linear infinite; 797 overflow: hidden; 798 white-space: nowrap; 799 800 } 801 802 %%SELECTOR%% .fancybuttondiv:hover a { 803 animation: none; /* Stop the animation on hover */ 804 color: {{ design.design.text_color_hover|default('#fff') }}; 805 } 806 807 %%SELECTOR%% .fancybuttondiv:hover { 808 background-color: {{ design.design.background_color_hover|default('#333') }}; 809 } 810 811 /* Keyframes for the marquee effect */ 812 @keyframes marquee { 813 0% { 814 transform: translateX(100%); 815 } 816 100% { 817 transform: translateX(-140%); 818 } 819 } 820 {% endif %} 821 -
breakdance-fancy-buttons/trunk/elements/Fancy_Button/element.php
r3121952 r3121957 56 56 static function slug() 57 57 { 58 return get_class();58 return __CLASS__; 59 59 } 60 60 … … 173 173 "Select Effect", 174 174 [], 175 ['type' => 'dropdown', 'layout' => 'vertical', 'items' => [ '0' => ['value' => 'slideover', 'text' => 'Slide Over'], '1' => ['text' => 'Slide Down', 'value' => 'slidedown'], '2' => ['text' => 'Diaganol Slide', 'value' => 'diagslide'], '3' => ['text' => 'Slide Up', 'value' => 'slideup'], '4' => ['text' => 'Expand', 'value' => 'borderexpand'], '5' => ['text' => 'Lift Door', 'value' => 'liftdoor'], '6' => ['text' => 'Zoom In', 'value' => 'zoomin'], '7' => ['text' => 'Fade', 'value' => 'fade'], '8' => ['text' => 'Ripple', 'value' => 'ripple'], '9' => ['text' => 'Rotate', 'value' => 'rotate'], '10' => ['text' => 'Glow', 'value' => 'glow'], '11' => ['text' => 'Angle In', 'value' => 'anglein'], '12' => ['text' => 'Curtain Down', 'value' => 'curtaindown'], '13' => ['text' => 'Bounce Down', 'value' => 'bouncedown'], '14' => ['text' => 'Bounce Left', 'value' => 'bounceleft'], '15' => ['text' => 'Arrow In', 'value' => 'angleindouble'], '16' => ['text' => 'Double Take', 'value' => 'doubletake'], '17' => ['text' => 'Radial', 'value' => 'radialexpand'], '18' => ['text' => 'Double Slide', 'value' => 'slideovertopbottom'], '19' => ['text' => 'Inset', 'value' => 'insetshadow'], '20' => ['text' => 'Marquee', 'value' => 'marquee']]],175 ['type' => 'dropdown', 'layout' => 'vertical', 'items' => [['value' => 'slideover', 'text' => 'Slide Over'], ['text' => 'Slide Down', 'value' => 'slidedown'], ['text' => 'Diaganol Slide', 'value' => 'diagslide'], ['text' => 'Slide Up', 'value' => 'slideup'], ['text' => 'Expand', 'value' => 'borderexpand'], ['text' => 'Lift Door', 'value' => 'liftdoor'], ['text' => 'Zoom In', 'value' => 'zoomin'], ['text' => 'Fade', 'value' => 'fade'], ['text' => 'Ripple', 'value' => 'ripple'], ['text' => 'Rotate', 'value' => 'rotate'], ['text' => 'Glow', 'value' => 'glow'], ['text' => 'Angle In', 'value' => 'anglein'], ['text' => 'Curtain Down', 'value' => 'curtaindown'], ['text' => 'Bounce Down', 'value' => 'bouncedown'], ['text' => 'Bounce Left', 'value' => 'bounceleft'], ['text' => 'Arrow In', 'value' => 'angleindouble'], ['text' => 'Double Take', 'value' => 'doubletake'], ['text' => 'Radial', 'value' => 'radialexpand'], ['text' => 'Double Slide', 'value' => 'slideovertopbottom'], ['text' => 'Inset', 'value' => 'insetshadow'], ['text' => 'Marquee', 'value' => 'marquee'], ['text' => 'Marquee 2', 'value' => 'marquee2'], ['text' => 'Typing', 'value' => 'typing'], ['text' => 'Wobble', 'value' => 'wobble']]], 176 176 false, 177 177 false, … … 189 189 "Rotate Amount", 190 190 [], 191 ['type' => 'number', 'layout' => 'vertical', 'condition' => [ '0' => ['0' =>['path' => 'content.fancy_button.select_effect', 'operand' => 'equals', 'value' => 'rotate']]]],191 ['type' => 'number', 'layout' => 'vertical', 'condition' => [[['path' => 'content.fancy_button.select_effect', 'operand' => 'equals', 'value' => 'rotate']]]], 192 192 false, 193 193 false, … … 197 197 "Marquee Speed", 198 198 [], 199 ['type' => 'number', 'layout' => 'vertical', 'condition' => ['0' => ['0' => ['path' => 'content.fancy_button.select_effect', 'operand' => 'equals', 'value' => 'marquee']]]], 199 ['type' => 'dropdown', 'layout' => 'vertical', 'condition' => [[['path' => 'content.fancy_button.select_effect', 'operand' => 'equals', 'value' => 'marquee']]], 'items' => [['value' => '1', 'text' => '1'], ['text' => '2', 'value' => '2'], ['text' => '3', 'value' => '3'], ['text' => '4', 'value' => '4'], ['text' => '5', 'value' => '5'], ['text' => '6', 'value' => '6'], ['text' => '7', 'value' => '7'], ['text' => '8', 'value' => '8'], ['text' => '9', 'value' => '9'], ['text' => '10', 'value' => '10']]], 200 false, 201 false, 202 [], 203 ), c( 204 "typing_speed", 205 "Typing Speed", 206 [], 207 ['type' => 'dropdown', 'layout' => 'vertical', 'rangeOptions' => ['min' => -1, 'step' => 1], 'items' => [['value' => '1', 'text' => '1'], ['text' => '2', 'value' => '2'], ['text' => '3', 'value' => '3'], ['text' => '4', 'value' => '4'], ['text' => '5', 'value' => '5'], ['text' => '6', 'value' => '6'], ['text' => '7', 'value' => '7'], ['text' => '8', 'value' => '8'], ['text' => '9', 'value' => '9'], ['text' => '10', 'value' => '10']], 'condition' => [[['path' => 'content.fancy_button.select_effect', 'operand' => 'equals', 'value' => 'typing']]]], 208 false, 209 false, 210 [], 211 ), c( 212 "marquee_speed_2", 213 "Marquee Speed 2", 214 [], 215 ['type' => 'dropdown', 'layout' => 'vertical', 'items' => [['value' => '1', 'text' => '1'], ['text' => '2', 'value' => '2'], ['text' => '3', 'value' => '3'], ['text' => '4', 'value' => '4'], ['text' => '5', 'value' => '5'], ['text' => '6', 'value' => '6'], ['text' => '7', 'value' => '7'], ['text' => '8', 'value' => '8'], ['text' => '9', 'value' => '9'], ['text' => '10', 'value' => '10']], 'condition' => [[['path' => 'content.fancy_button.select_effect', 'operand' => 'equals', 'value' => 'marquee2']]]], 200 216 false, 201 217 false, … … 261 277 static function dynamicPropertyPaths() 262 278 { 263 return [ '0' => ['accepts' => 'string', 'path' => 'content.fancy_button.button_text'], '1' => ['accepts' => 'string', 'path' => 'content.fancy_button.link'], '2' => ['accepts' => 'string', 'path' => 'content.fancy_button.content.text'], '3' => ['accepts' => 'string', 'path' => 'content.fancy_button.content.link.url'], '4' => ['path' => 'settings.advanced.attributes[].value', 'accepts' => 'string'], '5' => ['path' => 'settings.advanced.attributes[].value', 'accepts' => 'string'], '6' => ['path' => 'settings.advanced.attributes[].value', 'accepts' => 'string']];279 return [['accepts' => 'string', 'path' => 'content.fancy_button.button_text'], ['accepts' => 'string', 'path' => 'content.fancy_button.link'], ['accepts' => 'string', 'path' => 'content.fancy_button.content.text'], ['accepts' => 'string', 'path' => 'content.fancy_button.content.link.url']]; 264 280 } 265 281 -
breakdance-fancy-buttons/trunk/plugin.php
r3121952 r3121957 9 9 * Text Domain: Breakdance Fancy Buttons 10 10 * Domain Path: /languages/ 11 * Version: 1. 0.011 * Version: 1.1.0 12 12 */ 13 13 -
breakdance-fancy-buttons/trunk/readme.txt
r3121952 r3121957 7 7 License: GPLv2 or later 8 8 License URI: [http://www.gnu.org/licenses/gpl-2.0.html](http://www.gnu.org/licenses/gpl-2.0.html) 9 Stable tag: 1. 0.09 Stable tag: 1.1.0 10 10 11 11 A Wordpress plugin that adds a new element to Breakdance builder for fancy button effects … … 13 13 == Description == 14 14 15 2 0buttons effects in one element for Breakdance15 24 buttons effects in one element for Breakdance 16 16 17 17
Note: See TracChangeset
for help on using the changeset viewer.