how to add extra css to a fabricjs text object? - css

when using fabricjs textbox, I'd like to add extra css to textbox so that the edit area is more beabutiful.
The effect would be like this.
https://www.w3schools.com/CSSref/tryit.asp?filename=trycss3_border-image
Anyone knows how to implement this?
Thank you so much.

fabric doesn't support that and it would take a bunch of updating and straight up cavans drawing to make it happen.

Related

Ion-select UI for checkbox

I’m stuck on a quick change of the ion-select component.
I’m trying to keep a persistent way to display the alert, but checkbox are for sure doing what they want.
To explain, I need to put the checkbox on the right side of the alert. After investigations, I notice that on Android, it’s on the left by default, but in iOS, for a simple ion-select, squares are on the right, and when I use “multiple” property on ion-select, squares are going to be align on the left.
Does anybody knows how it’s possible to put these checkbox on right on all cases ?
N.B: There’s also something weird in iOS, when it’s an simple ion-select, it displays simple check without any circle. (Compares to multiple, that have circles with check on the left.)
Also, sorry for my english, improving it.
Thanks to all.
If you're using ionic 4/5, try using display:flex (Check this out for the details: https://css-tricks.com/snippets/css/a-guide-to-flexbox/). Plus, the css for popup component(alert,toast,loader, etc) wont work if you do it on the page.css file, thus I recommend to overwrite the CSS on the global.css file.

creating a round list in CSS (for a round menubar)

I am really hoping someone can help me. I am trying to create a round menubar in CSS and I've searched and searched for solutions but have found nothing. I know how to create round areas (by setting the radius), and I know how to create a simple straight line menu using <ul> & <li> but, as said, I want to create a round one.
there is a picture of something alike what I'd love to get working:
If anyone could help me on this I'd be so thoroughly grateful.
Closest things I know of are these:
http://www.cssplay.co.uk/menus/cssplay-round-and-round.html
http://codepen.io/tgrant54/pen/lBHwK
Is that what you're after?
This menu looks almost like Path's Button.
You can find the link to Path's Button here.
You just need to modify it a bit so the menu displayed in full sphere.
This isn't something you really want to be doing in pure CSS.
You may be able to make circle shapes with border-radius, but you're not actually making a circular object -- it's still a regular box shape as far as the browser is concerned, just with the corners rounded off. This has absolutely no bearing at all on your ability to do anything else to do with circles or curves in CSS.
Yes, it's possible to do something along the lines you're after, by putting every character into its own element, and styling each of them with a specific position, but that's going to be painful, inflexible, and difficult to work with. If you really want to do this, there's a code generator you could try out here, but I'd say you're barking up the wrong tree.
If you want to do this kind of thing properly, what you really need to be thinking about is doing it in graphical format, using either Canvas or SVG, plus plenty of javascript code.
I'd suggest looking into a JS library like Raphael for this; there are people who have tried similar things already using Raphael, which may help you -- see here, for example: Radial Pie Menu With Raphael JS
Hope that helps.

Creating a nice mouse over effect (includes example)?

I have an image and want to create a mouse over effect as soon on the following page:
http://www.zalando.de/roxy-pam-snowboot-winterstiefel-grey-ro511c00e-101.html
To see the effect, move your mouse over the "Auf den Wunschzettel" on the right side. How are those tings done?
Thanks!
If you want to do this the 'easy way', take a look at the jQuery plugin qTip: little link.
If you want to build this yourself, here are the stuff you'll mostly likely need to learn:
CSS Positioning.
onmouseover/onmouseout events.
The CSS display property.
Hope that's enough to get you started!
Note: this might be possible to achieve using CSS only, but it's more paradigmatic to use JavaScript for such things.

Flex: TextArea attached Image

Is there any advance TextArea that can attached image(image is alligned with the text) and the image can be movable inside the text area.I know that text area can support html text and can insert image tag but it is very limited, I can't move the picture inside textArea by dragging it or even add events on it.Is there any approach or solution or suggestion that you can give me?Your help guys is very much appreciated.
It should be possible using the new(ish) TextLayoutFramework (TLF), that came with CS5 and Flash builder 4 http://labs.adobe.com/technologies/textlayout/
It has advanced location information for letter possitions, and also supports inline images more like the way html does.
Also look at the textflow options from this developer: http://guyinthechair.com/tag/flash-text-engine/
Seems like you would only need to add the interaction layer to achieve your desied results and it might be easier to use.
It sounds like you would need to build a custom component for that functionality. Dragging an image around a TextArea is very non-standard behavior.
Flex documentation on custom components
Examples of custom components including a custom TextArea
The solution is TLF (text Layout Framework).
With TLF you can use TLF markup to send formatted text and images to a TextFlow. It's very powerful, but also complex. Here is a list of the tags you can use:
http://blogs.adobe.com/tlf/2009/09/tlf-markup-overview.html
I created a HTML Editor using it, and I'm impress with it. It supports image resizing, drag-n-drop, advanced formatting, etc.
Hope this helps!

Glossy buttons in Flex 3

Any ideas how to create a button class that looks something like this:
Taken from this tutorial page. I'm struggling to figure out what combination of filters I need to use to achieve the glossy effect.
The rounded corners and bevel/glow effect are simple enough. But how can I add a gloss gradient over only the top half of the button?
Use this App --> http://jirox.net/AsButtonGen/
Found it. Degrafa has a Button Loader thing that does this exactly.
Open source too.

Resources