Giter VIP home page Giter VIP logo

soulbuttons's People

Contributors

gingersoulrecords avatar ideag avatar

Watchers

 avatar

soulbuttons's Issues

Off-canvas content is showing on page load

I've seen this on a few sites that use SoulButtons. If we tell a menu to 'get off canvas,' that action is happening when the page loads, but I can see it for a second before it gets off the page.

I'm guessing that this is because we're using Tween.set to set the values, which isn't as 'quick' as CSS, which also means that more Soulbuttons may slow the process even more.

I see a few options - first, set initial CSS in addition to (or instead of) the Tween.set that gets evaluated way before any JS executes. Or, set up a callback with the page 'fade-in' that 'waits' until all DOM manipulation has completed before showing the page (this feels slower).

Lastly, as a backup, we may need to set something on the target element to hide it on page load, like an opacity class that gets removed on a callback.

Tough one! Would appreciate your feedback. Thx.

DB

Dashicons - inherit font size

Default dashicons css = 20px

Let's change that to inherit and place the SoulButtons.css styles to come after the minified dashicons styles.

submitting to WP.org

Hi, for submitting to WP.org there are a couple of things you would be better at doing, than I would:

  1. Short description (up to 150 characters, no formatting)
  2. Long description - can include links, bullet lists, bold/italic, etc. At least a couple paragraphs. A good place to mention your other plugins, including premium ones.
  3. Logo and cover images - we discussed those before and they will only be needed after plugin is confirmed, but it is always good to have them ready.

P.S. is gsr username on wordpress.org yours? it seems to be registered but never used really used. If it is, could you give me access to that account - I'll do your submissions using it.

CSS and Color attributes

Hey, I'm having trouble getting these to apply. See the homepage banner on GSR Developer.

[soulbutton style="transparent" color="white" href="#" icon="dashicons-arrow-down-alt" icon-position="after"]Explore[/soulbutton]

DB

undefined error

Seeing this if a certain attr is undefined:

Notice: Undefined index: target-open in /nas/content/live/gsrdemo/wp-content/plugins/soulbuttons/soulbuttons.php on line 412

Apply 'targeteffect' styles on a conditional basis

Hello!

I'm using SoulButtons' target & targetEffect attributes to position an off-canvas element (a menu). I'd like to be able to edit this menu in the Builder, so I need the AppendTo(body) and related styles (like fixed positioning, etc) only to apply outside of the Builder. The builder has an outer class of .fl-builder-edit, so that should be easy to check with jQuery.

Thx

padding removal attribute?

What do you think is the best approach for removing padding on a button that's less of a 'rectangular button' and more of an inline link? See https://www.uber.com/ for examples - the 'sign up' buttons have padding, the links (further down the page, with > symbols) do not have padding.

I tried this on the GSR Developer build. Setting padding="0" may is getting evaluated as false, thus causing the button to inherit the default padding. Plus, this is getting into 'CSS territory' which I'd like to avoid if possible (but not if it makes things more complex).

Perhaps making padding="0" or padding="none" do the same thing - apply the appropriate CSS to the button, is a good start? I'm hesitant to add more attributes if our current attrs can 'handle it.'

Thanks!

DB

rename target attribute

I got confused between 'link' and 'target' for ScrollTo functionality, so maybe a more specific attribute name would make sense?

Are classes supported as a link attribute? Your Soulbuttons on your demo site use IDs.

Option for offset to use the 'global offset value' in scrollto-offset

I mentioned this in SoulSections issues - having a global offset value that is equal to the height of an element (for example, a fixed navigation bar). Having a pixel-based offset is ok, but I'd like to allow the user to select 'scrollto-offset=(global offset value) so that all of their scrolls (from SoulButtons, SoulMenu, etc) use the same offset value.

Customized plugin assets

I just received an informal notice from WP plugin team that we should have different banner images icons for different plugins. They do not need to be completely different, but they need to be individualized

Close buttons on overlays

I'd like to prepend a close button to an overlay's top right corner that, on click, closes the overlay.

Settings Page

Can we insert links to SoulMatch & SoulButtons' settings pages to show before the 'Deactivate/Edit' controls in the Plugins list?

Thanks,

DB

Open by default?

Can we set a true/false attribute for whether we want the button's target 'open by default,' in which case, we apply the 'open' styles initially?

Thanks

D

click to scroll to an element

GreenSock has some nifty scrollTo functionality that would be right at home with a Soulbutton.

attributes: defaults

scrollToTarget: false
scrollToSpeed: 1
scrollToOffset: 0

Analytics tracking

I'd like a shortcode attribute that adds a data-attribute (e.g. data-label) to the button element that we can tie to some Google Analytics events.

You can see an example of this behavior here: http://edfuel.org/peer-learning-communities-detroit/

<a class="trackme ctabutton" href="/wp-content/uploads/2016/09/2016-EdFuel-PLCs_Scope-and-Sequence_Detroit_Management-Essentials.pdf" data-label="2016-detroit-plc-management-essentials">Download Overview</a>

This button has a class of trackme that has the following handler:

$('.trackme').on('click', function() { $thisLabel = $(this).attr('data-label'); __gaTracker('send', 'event', 'download', $thisLabel); });

Last I checked, that still works with a basic Google analytics config. If there's any way we can check for the __gaTracker function, even better.

This functionality will allow people to gather information about what SoulButtons are being clicked, and when.

Thanks

DB

Target-effects need proper styling

Right now, we do not give almost any styling to the elements we are animating via target-effect. The result is not pretty at the moment.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.