Plugin Directory

Changeset 3121957


Ignore:
Timestamp:
07/19/2024 10:37:33 AM (19 months ago)
Author:
philsafc
Message:

v 1.1

Location:
breakdance-fancy-buttons/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • breakdance-fancy-buttons/trunk/elements/Fancy_Button/css.twig

    r3121952 r3121957  
    540540    transition: all 0.25s ease;
    541541    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 */
    543543}
    544544
     
    634634    transition: all 0.3s ease;
    635635    z-index: 1; /* Ensure the button content is above any pseudo-elements */
     636    background-color: {{ design.design.background_color|default('#fff') }};
    636637}
    637638
     
    644645}
    645646
     647%%SELECTOR%% .fancybuttondiv:hover {
     648    background-color: {{ design.design.background_color_hover|default('#333') }};
     649}
     650
    646651%%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 */
    648653    color: {{ design.design.text_color_hover|default('#fff') }};
    649654}
     
    654659        transform: translateX(100%); /* Start fully off the right */
    655660    }
    656     50% {
    657         transform: translateX(0); /* Centered in the viewport */
    658     }
    659661    100% {
    660662        transform: translateX(-130%); /* Fully off the left */
     
    663665{% endif %}
    664666
    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  
    5656    static function slug()
    5757    {
    58         return get_class();
     58        return __CLASS__;
    5959    }
    6060
     
    173173        "Select Effect",
    174174        [],
    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']]],
    176176        false,
    177177        false,
     
    189189        "Rotate Amount",
    190190        [],
    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']]]],
    192192        false,
    193193        false,
     
    197197        "Marquee Speed",
    198198        [],
    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']]]],
    200216        false,
    201217        false,
     
    261277    static function dynamicPropertyPaths()
    262278    {
    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']];
    264280    }
    265281
  • breakdance-fancy-buttons/trunk/plugin.php

    r3121952 r3121957  
    99 * Text Domain: Breakdance Fancy Buttons
    1010 * Domain Path: /languages/
    11  * Version: 1.0.0
     11 * Version: 1.1.0
    1212 */
    1313
  • breakdance-fancy-buttons/trunk/readme.txt

    r3121952 r3121957  
    77License: GPLv2 or later
    88License URI: [http://www.gnu.org/licenses/gpl-2.0.html](http://www.gnu.org/licenses/gpl-2.0.html)
    9 Stable tag: 1.0.0
     9Stable tag: 1.1.0
    1010
    1111A Wordpress plugin that adds a new element to Breakdance builder for fancy button effects
     
    1313== Description ==
    1414
    15 20 buttons effects in one element for Breakdance
     1524 buttons effects in one element for Breakdance
    1616
    1717
Note: See TracChangeset for help on using the changeset viewer.