Comments (6)
Actually this issue on my list for a long time.
https://github.com/hakanersu/AmaranJS/blob/master/src/coffee/jquery.amaran.coffee#L182-L191
My calculations for slide to top and bottom not very accurate each calculation must be recalculate after an element added or removed.But after adding animate.css feature it seems try to fix this issue with css3 (implementing css3 slide animation with javascript support) better than javascript.
https://github.com/hakanersu/AmaranJS/blob/master/src/coffee/jquery.amaran.coffee#L211-L269
from amaranjs.
I am not an expert on UI programming / CSS - but I guess this item moving functionality is similar to item reorder and filter functionality like that of QuickSand (http://razorjack.net/quicksand/ )
Not sure how they do it in Quicksand plugin, but a group of items move very nicely to different destinations. Something like that here would be cool. At least in our present case, the situation is slightly easier, since each item has to move into the location of next one - so, may be you are right, some kind of CSS animation that can take 'source and destination places' and moves them smoothly should do it.
Just now looked into the demo of quicksand and they are doing something like style=transform...
May be that's the approach to take.
Also, a related feature is, to only keep certain "max no. of items" on the screen. If any new message arrives beyond the max no., then the old ones will be deleted from the top/bottom of screen to make space for new ones (instead of keep pushing them off screen). This way, at any point of time only certain configured n
no. of max. items will be visible on screen - very useful for building admin dashboards etc. that retain the last 5/10/15 messages on screen.
from amaranjs.
I am pretty sure that they are using jQuery Easing plugin.When i started this plugin my goal was simplicity and after all new features amaranjs not simple at all so i can implement easing plugin to project.
from amaranjs.
In fact, before choosing AmaranJS, I have evaluated almost all notification plugins out there. What I found is, AmaranJS is the one with the best customization features and has the nearly most features - so, in no way it is a simple plugin - its now a "notification solution" for JS :)
The only few missing / lacking features, if any, are as below, otherwise it would go to rank 1:
1. Support for only Fixed no. of maximum messages that can be displayed on screen
2. Ability to show "remaining time" before the message gets discarded / removed
3. Ability to keep the message under mouse stay there while user has mouse hovered
4. Ability to position the messages pre element and also per global
5. Ability to programatically close any single message visible on the screen (useful for 'click' handler)
The awesome features that would make this move years ahead of others would be:
6. Smooth up/down transitions (perhaps even configurable by programmer)
7. In-built support for "Notification Center" UI (perhaps as a plugin) with all old messages archive accessible
8. Fadeout/Zoomout to particular location on the screen (e.g. zoomout to the "notification center" icon on top nav menu) when the messages timeout and disappear
9. Ability to make any single message sticky through UI (e.g. a "sticky" icon next to "close" icon that users can click to make it stick there, and perhaps even with "minimize" icon option, like this one here: http://jspanel.de/)
I know the list is big - but the advantage is, AmaranJS is more close to achieving these, than most plugins out there. Thanks for creating this good plugin and sharing it with the world.
from amaranjs.
@KrishnaPG actually its a great list and i can use as roadmap for amaranjs :) I can implement most of them.
from amaranjs.
That would be awesome - Thank you. I am already sharing word about this plugin in social media - would be beneficial to many.
from amaranjs.
Related Issues (20)
- Are you planning to add background overlay effect? HOT 3
- Как запустить по нажатию кнопки?
- Adding "Center Center" position option HOT 4
- How to copy the alert / error messages displayed? HOT 2
- CDN HOT 3
- Feature for local vs global positioning? HOT 1
- How to customize the close x button in custom theme HOT 6
- How to prevent message from disappearing while mouse is on it? HOT 3
- messages in the console HOT 1
- Size changing for all messages instead of just one HOT 2
- Button or link HOT 2
- Bug clearAll : true HOT 8
- What is the new page for Demo and Documentation? HOT 2
- Overlay and sticky button not working HOT 1
- Add to npm repository plz :) HOT 7
- Your hosting account is, uhm, suspended. HOT 1
- It is possible to give custom color to 'default-spinner' HOT 2
- Link for notification
- i call a function onclick then show amaran notification then this errors occurs HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amaranjs.